DiscordClientOptions
Defined in: clients/discord-client/dist/index.d.mts:16
Options for createDiscordClient.
Properties
Section titled “Properties”baseUrl?
Section titled “baseUrl?”
optionalbaseUrl?:string
Defined in: clients/discord-client/dist/index.d.mts:18
Override base URL for testing. Defaults to https://discord.com/api/v10.
fetch?
Section titled “fetch?”
optionalfetch?: (input,init?) =>Promise<Response>
Defined in: clients/discord-client/dist/index.d.mts:20
Override fetch for testing. Defaults to globalThis.fetch.
Parameters
Section titled “Parameters”string | URL | Request
RequestInit
Returns
Section titled “Returns”Promise<Response>
sleep?
Section titled “sleep?”
optionalsleep?: (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.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Promise<void>