From bd98b3ea363370970c9a1ffa5cc25326f8fc4c25 Mon Sep 17 00:00:00 2001 From: 8au <54277586+8auu@users.noreply.github.com> Date: Thu, 15 Jan 2026 18:17:46 +0000 Subject: [PATCH] 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 1eda82bb0bf24eaf066283011bfdd7756f6b404c. --------- Co-authored-by: Fleny --- packages/gateway/src/Shard.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gateway/src/Shard.ts b/packages/gateway/src/Shard.ts index e09f2ca38..e5262b495 100644 --- a/packages/gateway/src/Shard.ts +++ b/packages/gateway/src/Shard.ts @@ -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