mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 01:53: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);
|
interaction.reply(client.messages.runningCommandFailed);
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
} else if (interaction.isSelectMenu()){
|
} else if (interaction.isSelectMenu() || interaction.isButton()){
|
||||||
|
|
||||||
} else if (interaction.isButton()){
|
|
||||||
const commandName = interaction.customId;
|
const commandName = interaction.customId;
|
||||||
const command = client.commands.get(commandName);
|
const command = client.commands.get(commandName);
|
||||||
if (!command) return;
|
if (!command) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
command.execute(interaction, client, Discord, command);
|
command.execute(interaction, client, Discord, command);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user