guildIdToShardId()
function src/tools.ts:8function guildIdToShardId(guildId: string, shardCount?: number): numberParameters
guildId
string
shardCount?
number
Small helpers, like working out which shard a guild is on.
import { Tools } from 'detritus-utils';Standalone helpers.
function guildIdToShardId(guildId: string, shardCount?: number): numberfunction normalize(object: { [key: string]: any }): Readonly<{ [key: string]: any }>function URIEncodeWrap(unsafe: URIEncodeWrapped): URIEncodeWrappedNamed types used across the API.
type URIEncodeWrapFunc = (...args: any[]) => stringtype URIEncodeWrapped = { [key: string]: any }