import { type GatewayManager } from "https://dotland.deno.dev/x/discordeno@13.0.0-rc45/template/minimal/deps.ts";
Properties
The delay in milliseconds to wait before spawning next shard. OPTIMAL IS ABOVE 2500. YOU DON"T WANT TO HIT THE RATE LIMIT!!!
Whether or not the resharder should automatically switch to LARGE BOT SHARDING when you are above 100K servers.
The number of identify requests allowed per 5 seconds. So, if you had a max concurrency of 16, and 16 shards for example, you could start them all up at the same time. Whereas if you had 32 shards, if you tried to start up shard 0 and 16 at the same time for example, it would not work. You can start shards 0-15 concurrently, then 16-31...
Stored as bucketId: { workers: [workerId, [ShardIds]], createNextShard: boolean }
Handle the different logs. Used for debugging.
The methods related to resharding.