Module

x/discordeno/mod.ts>calculateTotalShards

Discord API library for Deno
Latest
function calculateTotalShards
import { calculateTotalShards } from "https://dotland.deno.dev/x/discordeno@18.0.1/mod.ts";

Handler used to determine max number of shards to use based upon the max concurrency.

Parameters

gateway: GatewayManager

Returns

number
import calculateTotalShards
import { calculateTotalShards } from "https://dotland.deno.dev/x/discordeno@18.0.1/mod.ts";