Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
function markNewGuildShardId
Re-export
import { markNewGuildShardId } from "https://deno.land/x/discordeno@13.0.0-rc45/template/bigbot/deps.ts";

Handler that by default will save the new shard id for each guild this becomes ready in new gateway. This can be overriden 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