Skip to content

DiscordClientOptions

Defined in: utils.ts:2

Options for createDiscordClient.

optional baseUrl?: string

Defined in: utils.ts:4

Override base URL for testing. Defaults to https://discord.com/api/v10.


optional fetch?: (input, init?) => Promise<Response>

Defined in: utils.ts:6

Override fetch for testing. Defaults to globalThis.fetch.

string | URL | Request

RequestInit

Promise<Response>


optional sleep?: (ms) => Promise<void>

Defined in: utils.ts:8

Override the wait between a 429 and its retry, for testing. Defaults to a real timer.

number

Promise<void>