shardIdFor method

int shardIdFor(
  1. Snowflake guildId
)

Compute the ID of the shard that handles events for guildId.

Implementation

int shardIdFor(Snowflake guildId) => (guildId.value >> 22) % totalShards;