fix(discord-bot): not executing slash commands

This commit is contained in:
GramingFoxTeam
2022-11-17 16:14:05 +03:00
parent f0d45b2c92
commit aa0808768b

View File

@@ -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);