fix(discord-bot): also execute slash commands

This commit is contained in:
GramingFoxTeam
2022-11-17 16:03:40 +03:00
parent 355a50803a
commit f0d45b2c92

View File

@@ -4,7 +4,11 @@ export default {
name: Events.InteractionCreate,
once: false,
async execute(interaction) {
if (!interaction.isMessageContextMenuCommand()) return;
if (
!interaction.isMessageContextMenuCommand() ||
!interaction.isChatInputCommand()
)
return;
const command = interaction.client.commands.get(interaction.commandName);