fix: shard state incorrect after receiving ready event (#4671)

* fix: shard state incorrect after receiving ready event

* chore: updated website bot guild counts

* Revert "chore: updated website bot guild counts"

This reverts commit 1eda82bb0b.

---------

Co-authored-by: Fleny <Fleny113@outlook.com>
This commit is contained in:
8au
2026-01-15 18:17:46 +00:00
committed by GitHub
parent c1445e4600
commit bd98b3ea36
+1 -1
View File
@@ -730,7 +730,6 @@ export class DiscordenoShard {
break
case 'READY': {
const payload = packet.d as DiscordReady
this.events.ready?.(this)
// Important for future resumes.
this.resumeGatewayUrl = payload.resume_gateway_url
@@ -739,6 +738,7 @@ export class DiscordenoShard {
this.state = ShardState.Connected
this.logger.debug(`[Shard] Shard #${this.id} received READY`)
this.events.ready?.(this)
// Continue the requests which have been queued since the shard went offline.
// Important when this is a re-identify