Skip to content

Ready event not emitted if shard reconnects after final shard initialization #10485

Open
@pkdev08

Description

@pkdev08

Which package is this bug report for?

discord.js

Issue description

If a shard attempts to reconnect but doesn't fully do so before the final shard becomes ready, the ready event won't be emitted. For example, with 10 shards, if shard 6 reconnects and becomes ready after shard 10 is ready, the ready event won’t fire, although all shards are ready. The only way to resolve this issue is to reboot the bot and hope the same situation doesn't occur.

Code sample

No response

Versions

djs 14.16.1
node LTS

Issue priority

Medium (should be fixed soon)

Which partials do you have configured?

Not applicable

Which gateway intents are you subscribing to?

Not applicable

I have tested this issue on a development release

yes

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions