From 6defa07714c2468532dc3fef24a4f8c7676b90b3 Mon Sep 17 00:00:00 2001 From: idinium96 <47635037+idinium96@users.noreply.github.com> Date: Fri, 19 Jul 2024 05:57:05 +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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/classes/DiscordBot.ts b/src/classes/DiscordBot.ts index 68c9fd92e..d620fcef2 100644 --- a/src/classes/DiscordBot.ts +++ b/src/classes/DiscordBot.ts @@ -33,8 +33,8 @@ export default class DiscordBot { }); // 'ready' binding should be executed BEFORE the login() is complete - this.client.on('ready', this.onClientReady.bind(this)); - this.client.on('messageCreate', async message => this.onMessage(message)); + void this.client.on('ready', this.onClientReady.bind(this)); + void this.client.on('messageCreate', async message => this.onMessage(message)); this.prefix = this.bot.options.miscSettings?.prefixes?.discord ?? this.prefix; } @@ -49,7 +49,7 @@ export default class DiscordBot { } ]); - this.client.on('interactionCreate', async interaction => { + void this.client.on('interactionCreate', async interaction => { if (!interaction.isChatInputCommand()) return; if (interaction.commandName === 'uptime') {