import { type GatewayManager } from "https://deno.land/x/discordeno@13.0.0-rc45/template/bigbot/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 remaining number of session starts the current user is allowed.
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 }
The amount of milliseconds the gateway rate limit will reset in. By default 60000 or 1 minute.
The maximum amount of requests that the gateway can make before being rate limited. By default 120.
Handle the different logs. Used for debugging.
The methods related to resharding.
Calculates the number of requests in a shard that are safe to be used.