You are reading the documentation for the next version of discord.js. Documentation for v13/v14+ has been moved to old.discordjs.dev

calculateShardId

export declare function calculateShardId(guildId: string, shardCount: number): number;
export declare function calculateShardId(guildId: string, shardCount: number): number;
Calculates the shard id for a given guild id.
NameTypeOptionalDescription
guildIdstringNoThe guild id to calculate the shard id for
shardCountnumberNoThe total number of shards