Skip to content

DiscordGatewayClientOptions

Defined in: packages/platform-discord/src/gateway/client.ts:57

readonly optional apiBase?: string

Defined in: packages/platform-discord/src/gateway/client.ts:68


readonly optional build?: Option<string>

Defined in: packages/platform-discord/src/client/core.ts:109

Pass Config.option(...) directly. Defaults to the BuildId reference.

DiscordClientOptions.build


readonly optional clientId?: string

Defined in: packages/platform-discord/src/gateway/client.ts:61

Defaults to the DiscordApplication reference.


readonly optional commands?: readonly RegisteredCommand<unknown>[]

Defined in: packages/platform-discord/src/client/core.ts:111

Commands installed when the client is created.

DiscordClientOptions.commands


readonly optional devGuildId?: Option<string>

Defined in: packages/platform-discord/src/gateway/client.ts:63

Defaults to the DiscordApplication reference; None registers globally.


readonly intents: number | readonly number[]

Defined in: packages/platform-discord/src/gateway/client.ts:65

A bitfield or a list of intent bits.


readonly optional readyTimeout?: Input

Defined in: packages/platform-discord/src/gateway/client.ts:70

How long to wait for READY before failing the attempt.


readonly optional restTimeout?: Input

Defined in: packages/platform-discord/src/gateway/client.ts:72

How long one Discord REST call may wait. Uses the REST client default when omitted.


readonly optional shardCount?: number

Defined in: packages/platform-discord/src/gateway/client.ts:67

Shard count to request from dfx. Defaults to one shard.


readonly token: Redacted<string>

Defined in: packages/platform-discord/src/gateway/client.ts:59

Bot token. Pass a Config.Redacted value directly.