From 1c9ad75b8eb82d62b636cee1aff25989f5bbe345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Tue, 31 Aug 2021 11:55:57 +0300 Subject: [PATCH] Updated interactionCreate event --- src/client/events/interactionCreate.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/client/events/interactionCreate.js b/src/client/events/interactionCreate.js index 094f910..af105ab 100644 --- a/src/client/events/interactionCreate.js +++ b/src/client/events/interactionCreate.js @@ -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) {