mirror of
https://github.com/discordeno/discordeno.git
synced 2026-07-21 21:52:52 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user