Updated interactionCreate event

This commit is contained in:
Christer Warén 2021-08-31 11:55:57 +03:00
parent 277b67e3df
commit 1c9ad75b8e

View File

@ -19,9 +19,7 @@ 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;