From aa0808768b90844c5fbd3e75d9f2d01c723b0151 Mon Sep 17 00:00:00 2001 From: GramingFoxTeam Date: Thu, 17 Nov 2022 16:14:05 +0300 Subject: [PATCH] fix(discord-bot): not executing slash commands --- bots/discord/events/discord/interactionCreate.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bots/discord/events/discord/interactionCreate.js b/bots/discord/events/discord/interactionCreate.js index 550afc0..39aa1d7 100644 --- a/bots/discord/events/discord/interactionCreate.js +++ b/bots/discord/events/discord/interactionCreate.js @@ -4,11 +4,9 @@ export default { name: Events.InteractionCreate, once: false, async execute(interaction) { - if ( - !interaction.isMessageContextMenuCommand() || - !interaction.isChatInputCommand() - ) - return; + if (!interaction.isMessageContextMenuCommand()) { + if (!interaction.isChatInputCommand()) return; + } const command = interaction.client.commands.get(interaction.commandName);