import { type CreateGatewayManager } from "https://dotland.deno.dev/x/discordeno@18.0.1/plugins/helpers/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!!!
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.