mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 01:13:17 +00:00
Updated interactionCreate event
This commit is contained in:
parent
277b67e3df
commit
1c9ad75b8e
@ -19,13 +19,11 @@ module.exports = {
|
||||
interaction.reply(client.messages.runningCommandFailed);
|
||||
console.error(error);
|
||||
}
|
||||
} else if (interaction.isSelectMenu()){
|
||||
|
||||
} else if (interaction.isButton()){
|
||||
} else if (interaction.isSelectMenu() || interaction.isButton()){
|
||||
const commandName = interaction.customId;
|
||||
const command = client.commands.get(commandName);
|
||||
if (!command) return;
|
||||
|
||||
|
||||
try {
|
||||
command.execute(interaction, client, Discord, command);
|
||||
} catch (error) {
|
||||
|
Loading…
Reference in New Issue
Block a user