/
docs
/
packages
/
util
/
main
/
calculateShardId%3AFunction
Search...
K
util
discord.js
brokers
builders
collection
core
formatters
next
proxy
rest
util
voice
ws
main
main
Functions
calculateShardId
getUserAgentAppendix
isEquatable
isJSONEncodable
lazy
range
shouldUseGlobalFetchAndWebSocket
Interfaces
Equatable
JSONEncodable
RangeOptions
Types
Awaitable
calculateShardId
export declare function
calculateShardId
(
guildId
:
string
,
shardCount
:
number
)
:
number
;
export declare function
calculateShardId
(guildId
:
string
,
shardCount
:
number
)
:
number
;
Summary
Calculates the shard id for a given guild id.
Parameters
Name
Type
Optional
Description
guildId
string
No
The guild id to calculate the shard id for
shardCount
number
No
The total number of shards