mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-01 16:31:25 +03:00
fix: problem caused by previous #250 fix
This commit is contained in:
@@ -17,8 +17,6 @@ module.exports = class InteractionCreateEventListener extends EventListener {
|
|||||||
async execute(interaction) {
|
async execute(interaction) {
|
||||||
this.client.log.debug(interaction);
|
this.client.log.debug(interaction);
|
||||||
|
|
||||||
await interaction.deferReply();
|
|
||||||
|
|
||||||
const settings = await this.client.utils.getSettings(interaction.guild.id);
|
const settings = await this.client.utils.getSettings(interaction.guild.id);
|
||||||
const i18n = this.client.i18n.getLocale(settings.locale);
|
const i18n = this.client.i18n.getLocale(settings.locale);
|
||||||
|
|
||||||
|
@@ -148,6 +148,7 @@ module.exports = class CommandManager {
|
|||||||
*/
|
*/
|
||||||
async handle(interaction) {
|
async handle(interaction) {
|
||||||
if (!interaction.guild) return this.client.log.debug('Ignoring non-guild command 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 settings = await this.client.utils.getSettings(interaction.guild.id);
|
||||||
const i18n = this.client.i18n.getLocale(settings.locale);
|
const i18n = this.client.i18n.getLocale(settings.locale);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user