Preview environment

function calculateShardId

export declare function calculateShardId(guildId: string, shardCount: number): number;

Calculates the shard id for a given guild id.

Parameters

guildId: string
The guild id to calculate the shard id for
shardCount: number
The total number of shards