import { type CreateGatewayManager } from "https://deno.land/x/oasis@2.1.0/packages/deps.ts";
Properties
Delay in milliseconds to wait before spawning next shard. OPTIMAL IS ABOVE 5100. YOU DON'T WANT TO HIT THE RATE LIMIT!!!
Total amount of shards your bot uses. Useful for zero-downtime updates or resharding.
Id of the first Shard which should get controlled by this manager.
NOTE: This is intended for testing purposes if big bots want to test the gateway on smaller scale. This is not recommended to be used in production.
Id of the last Shard which should get controlled by this manager.
NOTE: This is intended for testing purposes if big bots want to test the gateway on smaller scale. This is not recommended to be used in production.
Important data which is used by the manager to connect shards to the gateway.
Options which are used to create a new shard.
Stored as bucketId: { workers: [workerId, [ShardIds]], createNextShard: boolean }
Sends the discord payload to another server.
Handle the different logs. Used for debugging.
Calculates the number of shards to use based on the max concurrency