Skip to main content
Module

x/discordeno/gateway/manager/resharder.ts

Discord API library for Deno
Latest
import * as discordeno from "https://deno.land/x/discordeno@18.0.1/gateway/manager/resharder.ts";

Functions

Handler that by default will check to see if resharding should occur. Can be overridden if you have multiple servers and you want to communicate through redis pubsub or whatever you prefer.

Handler that by default will save the new shard id for each guild this becomes ready in new gateway. This can be overridden to save the shard ids in a redis cache layer or whatever you prefer. These ids will be used later to update all guilds.

Handler that by default does not do anything since by default the library will not cache.