{"size": 462, "ext": "js", "max_stars_repo_path": "events/casinoComponentManager.js", "max_stars_repo_name": "rex8112/HeliosBot", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "events/casinoComponentManager.js", "max_issues_repo_name": "rex8112/HeliosBot", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "events/casinoComponentManager.js", "max_forks_repo_name": "rex8112/HeliosBot", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 33.0, "max_line_length": 88, "alphanum_fraction": 0.6298701299}
const { MessageActionRow } = require('discord.js');

module.exports = {
    name: 'interactionCreate',
    async execute(interaction) {
        if (!interaction.isButton() && !interaction.isSelectMenu()) return;

        if (interaction.customId.startsWith('casino')) {
            const casino = interaction.client.servers.get(interaction.guild.id)?.casino;
            if (!casino) return;
            casino.handleInteraction(interaction);
        }
    },
};