mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 05:53:18 +00:00
Updated interactionCreate event
This commit is contained in:
parent
277b67e3df
commit
1c9ad75b8e
@ -19,9 +19,7 @@ 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user