Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/discordeno/gateway/manager/resharder.ts

Discord API library for Deno
Extremely Popular
Go to Latest
import * as discordeno from "https://deno.land/x/discordeno@17.2.0/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.