Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
function markNewGuildShardId
import { markNewGuildShardId } from "https://deno.land/x/discordeno_patched@18.0.3/gateway/manager/resharder.ts";

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.

Parameters

guildIds: bigint[]
shardId: number