dcord.util.sharding

Utilties related to Discord Guild sharding.

Members

Functions

shardNumber
ushort shardNumber(Snowflake id, ushort numShards)

Returns the shard number a given snowflake is on (given the number of shards), using the algorithm presented at https://discord.com/developers/docs/topics/gateway#sharding.

Meta