Files
discordeno/packages
93786b6740 fix(bot): keep an explicit lastShardId of 0 in bot.start() (#5382)
bot.start() derived lastShardId from the recommended shard count whenever
`!options.gateway?.lastShardId` held, so an explicit `lastShardId: 0` — a
valid single shard configuration — was treated as absent and overwritten,
spawning every recommended shard in a process meant to run one.

Compare against undefined instead.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Fleny <Fleny113@outlook.com>
2026-08-30 17:37:22 +02:00
..