mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
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:
@@ -279,7 +279,6 @@ class Client extends BaseClient {
|
||||
(await this.ws.fetchStatus()).every(status => status === WebSocketShardStatus.Ready)
|
||||
) {
|
||||
this.emit(Events.Debug, 'Client received all its guilds. Marking as fully ready.');
|
||||
this.status = Status.Ready;
|
||||
|
||||
this._triggerClientReady();
|
||||
return;
|
||||
@@ -302,7 +301,6 @@ class Client extends BaseClient {
|
||||
);
|
||||
|
||||
this.readyTimeout = null;
|
||||
this.status = Status.Ready;
|
||||
|
||||
this._triggerClientReady();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user