From e38b66e4dd9ab4ff18e074bbe48d651d7a939a39 Mon Sep 17 00:00:00 2001 From: Isaac Date: Tue, 26 Oct 2021 20:27:42 +0100 Subject: [PATCH] fix: problem caused by previous #250 fix --- src/listeners/interactionCreate.js | 2 -- src/modules/commands/manager.js | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/listeners/interactionCreate.js b/src/listeners/interactionCreate.js index a09e737..861d7ca 100644 --- a/src/listeners/interactionCreate.js +++ b/src/listeners/interactionCreate.js @@ -17,8 +17,6 @@ module.exports = class InteractionCreateEventListener extends EventListener { async execute(interaction) { this.client.log.debug(interaction); - await interaction.deferReply(); - const settings = await this.client.utils.getSettings(interaction.guild.id); const i18n = this.client.i18n.getLocale(settings.locale); diff --git a/src/modules/commands/manager.js b/src/modules/commands/manager.js index 125141a..934b9f8 100644 --- a/src/modules/commands/manager.js +++ b/src/modules/commands/manager.js @@ -148,6 +148,7 @@ module.exports = class CommandManager { */ async handle(interaction) { if (!interaction.guild) return this.client.log.debug('Ignoring non-guild command interaction'); + await interaction.deferReply(); const settings = await this.client.utils.getSettings(interaction.guild.id); const i18n = this.client.i18n.getLocale(settings.locale);