fix: don't set ready status twice (#10807)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Qjuh
2025-04-17 20:11:24 +02:00
committed by GitHub
parent 57c3da2e8e
commit feec5efe45

View File

@@ -279,7 +279,6 @@ class Client extends BaseClient {
(await this.ws.fetchStatus()).every(status => status === WebSocketShardStatus.Ready) (await this.ws.fetchStatus()).every(status => status === WebSocketShardStatus.Ready)
) { ) {
this.emit(Events.Debug, 'Client received all its guilds. Marking as fully ready.'); this.emit(Events.Debug, 'Client received all its guilds. Marking as fully ready.');
this.status = Status.Ready;
this._triggerClientReady(); this._triggerClientReady();
return; return;
@@ -302,7 +301,6 @@ class Client extends BaseClient {
); );
this.readyTimeout = null; this.readyTimeout = null;
this.status = Status.Ready;
this._triggerClientReady(); this._triggerClientReady();
}, },