mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 08:20:08 +00:00
fix: lastShardId on startBot
This commit is contained in:
2
bot.ts
2
bot.ts
@@ -264,7 +264,7 @@ export async function startBot(bot: Bot) {
|
||||
bot.gateway.sessionStartLimitRemaining = bot.botGatewayData.sessionStartLimit.remaining;
|
||||
bot.gateway.sessionStartLimitResetAfter = bot.botGatewayData.sessionStartLimit.resetAfter;
|
||||
bot.gateway.maxConcurrency = bot.botGatewayData.sessionStartLimit.maxConcurrency;
|
||||
bot.gateway.lastShardId = bot.botGatewayData.shards;
|
||||
bot.gateway.lastShardId = bot.botGatewayData.shards === 1 ? 0 : bot.botGatewayData.shards - 1;
|
||||
bot.gateway.maxShards = bot.botGatewayData.shards;
|
||||
|
||||
bot.gateway.spawnShards(bot.gateway);
|
||||
|
||||
Reference in New Issue
Block a user