From 12def5bb705425458e191ea7fe886c5935a37bfa Mon Sep 17 00:00:00 2001 From: idinium96 <47635037+idinium96@users.noreply.github.com> Date: Fri, 19 Jul 2024 06:00:10 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/classes/DiscordBot.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/classes/DiscordBot.ts b/src/classes/DiscordBot.ts index d620fcef2..d3cae80bf 100644 --- a/src/classes/DiscordBot.ts +++ b/src/classes/DiscordBot.ts @@ -33,8 +33,10 @@ export default class DiscordBot { }); // 'ready' binding should be executed BEFORE the login() is complete - void this.client.on('ready', this.onClientReady.bind(this)); - void this.client.on('messageCreate', async message => this.onMessage(message)); + //@typescript-eslint/no-misused-promises + this.client.on('ready', this.onClientReady.bind(this)); + //@typescript-eslint/no-misused-promises + this.client.on('messageCreate', async message => this.onMessage(message)); this.prefix = this.bot.options.miscSettings?.prefixes?.discord ?? this.prefix; } @@ -49,7 +51,8 @@ export default class DiscordBot { } ]); - void this.client.on('interactionCreate', async interaction => { + //@typescript-eslint/no-misused-promises + this.client.on('interactionCreate', async interaction => { if (!interaction.isChatInputCommand()) return; if (interaction.commandName === 'uptime') {