From 460af988076559d8ca5aac64d8154f3f7b4a643c Mon Sep 17 00:00:00 2001 From: ITOH Date: Thu, 13 May 2021 18:40:59 +0200 Subject: [PATCH] Update READY.ts --- src/handlers/misc/READY.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/handlers/misc/READY.ts b/src/handlers/misc/READY.ts index 9d0ded648..57bef2995 100644 --- a/src/handlers/misc/READY.ts +++ b/src/handlers/misc/READY.ts @@ -67,7 +67,7 @@ function loaded(shard: DiscordenoShard) { shard.ready = true; // If it is not the last shard we can't go full ready - if (shard.id !== ws.maxShards - 1) return; + if (shard.id !== ws.lastShardId) return; // Still some shards are loading so wait another 2 seconds for them if (ws.shards.some((shard) => !shard.ready)) { @@ -78,6 +78,7 @@ function loaded(shard: DiscordenoShard) { ); loaded(shard); }, 2000); + return; }