mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 03:18:17 +00:00
change: pass shardId instead of the shard in shard events
This commit is contained in:
@@ -48,7 +48,7 @@ function checkReady(payload: Ready, shard: DiscordenoShard) {
|
||||
|
||||
// If the last GUILD_CREATE has been received before 5 seconds if so most likely the remaining guilds are unavailable
|
||||
if (shard.lastAvailable + 5000 < Date.now()) {
|
||||
eventHandlers.shardFailedToLoad?.(shard, shard.unavailableGuildIds);
|
||||
eventHandlers.shardFailedToLoad?.(shard.id, shard.unavailableGuildIds);
|
||||
// Force execute the loaded function to prevent infinite loop
|
||||
return loaded(shard);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user