detritus

Toolsnamespace

Small helpers, like working out which shard a guild is on.

On this page
import { Tools } from 'detritus-utils';
2 type aliases · 3 functions

Functions

Standalone helpers.

guildIdToShardId()

function src/tools.ts:8
function guildIdToShardId(guildId: string, shardCount?: number): number
guildId
string
shardCount?
number
Default 0

normalize()

function src/tools.ts:1
function normalize(object: { [key: string]: any }): Readonly<{ [key: string]: any }>

Type aliases

Named types used across the API.

URIEncodeWrapFunc

type src/tools.ts:21
type URIEncodeWrapFunc = (...args: any[]) => string

URIEncodeWrapped

type src/tools.ts:22
type URIEncodeWrapped = { [key: string]: any }