import { type ActivateResharderOptions } from "https://deno.land/x/discordeno_patched@18.0.3/gateway/manager/resharder.ts";
Properties
Interval in milliseconds of when to check whether it's time to reshard.
Gateway manager which the resharder should be bound to.
Methods
Function which can be used to fetch the current gateway information of the bot. This function is mainly used by the reshard checker.
Function which is used to tell a Worker that it should identify a resharder Shard to the gateway and wait for further instructions. The worker should NOT process any events coming from this Shard.
Tell the resharder and manager that the a shard is created and identified using new settings but is currently pending by ignoring incoming events. This can be used to track all shards are online which is when old shards are closed and these new shards replace the old ones.