mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
fix: checkReady return loaded()
This commit is contained in:
@@ -50,7 +50,7 @@ function checkReady(payload: Ready, shard: DiscordenoShard) {
|
||||
if (shard.lastAvailable + 5000 < Date.now()) {
|
||||
eventHandlers.shardFailedToLoad?.(shard, shard.unavailableGuildIds);
|
||||
// Force execute the loaded function to prevent infinite loop
|
||||
loaded(shard);
|
||||
return loaded(shard);
|
||||
}
|
||||
|
||||
// Not all guilds were loaded but 5 seconds haven't passed so check again
|
||||
|
||||
Reference in New Issue
Block a user