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, name: Events.InteractionCreate,
once: false, once: false,
async execute(interaction) { async execute(interaction) {
if ( if (!interaction.isMessageContextMenuCommand()) {
!interaction.isMessageContextMenuCommand() || if (!interaction.isChatInputCommand()) return;
!interaction.isChatInputCommand() }
)
return;
const command = interaction.client.commands.get(interaction.commandName); const command = interaction.client.commands.get(interaction.commandName);