mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 08:20:08 +00:00
fix: use ws.maxShards
This commit is contained in:
@@ -76,7 +76,7 @@ function loaded(shardId: number) {
|
||||
shard.ready = true;
|
||||
|
||||
// If it is the last shard we can go full ready
|
||||
if (shardId === ws.lastShardId - 1) {
|
||||
if (shardId === ws.maxShards - 1) {
|
||||
// Still some shards are loading so wait another 2 seconds for them
|
||||
if (ws.shards.some((shard) => !shard.ready)) {
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user