mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 08:13:09 +02:00
fix: problem caused by previous #250 fix
This commit is contained in:
parent
410abcafe9
commit
e38b66e4dd
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user