From 98c755dac7a6fcbca3e83267c70e89ba4ff358d7 Mon Sep 17 00:00:00 2001 From: MARCROCK22 Date: Sat, 17 Aug 2024 18:52:07 +0000 Subject: [PATCH] fix: botReady emits twice --- src/client/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/client.ts b/src/client/client.ts index dcdc4cb..01963de 100644 --- a/src/client/client.ts +++ b/src/client/client.ts @@ -190,7 +190,6 @@ export class Client extends BaseClient { this.botId = packet.d.user.id; this.applicationId = packet.d.application.id; this.me = Transformers.ClientUser(this, packet.d.user, packet.d.application) as never; - await this.events?.execute(packet.t as never, packet, this as Client, shardId); if ( !( this.__handleGuilds?.size && @@ -203,6 +202,7 @@ export class Client extends BaseClient { delete this.__handleGuilds; } this.debugger?.debug(`#${shardId}[${packet.d.user.username}](${this.botId}) is online...`); + await this.events?.execute(packet.t as never, packet, this as Client, shardId); break; default: await this.events?.execute(packet.t as never, packet, this as Client, shardId);