Skip to content

DiscordClientOptions

Defined in: clients/discord-client/dist/index.d.mts:16

Options for createDiscordClient.

optional baseUrl?: string

Defined in: clients/discord-client/dist/index.d.mts:18

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


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

Defined in: clients/discord-client/dist/index.d.mts:20

Override fetch for testing. Defaults to globalThis.fetch.

string | URL | Request

RequestInit

Promise<Response>


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

Defined in: clients/discord-client/dist/index.d.mts:22

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

number

Promise<void>