DiscordGatewayClientOptions
Defined in: packages/platform-discord/src/gateway/client.ts:57
Extends
Section titled “Extends”Properties
Section titled “Properties”apiBase?
Section titled “apiBase?”
readonlyoptionalapiBase?:string
Defined in: packages/platform-discord/src/gateway/client.ts:68
build?
Section titled “build?”
readonlyoptionalbuild?:Option<string>
Defined in: packages/platform-discord/src/client/core.ts:109
Pass Config.option(...) directly. Defaults to the BuildId reference.
Inherited from
Section titled “Inherited from”clientId?
Section titled “clientId?”
readonlyoptionalclientId?:string
Defined in: packages/platform-discord/src/gateway/client.ts:61
Defaults to the DiscordApplication reference.
commands?
Section titled “commands?”
readonlyoptionalcommands?: readonlyRegisteredCommand<unknown>[]
Defined in: packages/platform-discord/src/client/core.ts:111
Commands installed when the client is created.
Inherited from
Section titled “Inherited from”devGuildId?
Section titled “devGuildId?”
readonlyoptionaldevGuildId?:Option<string>
Defined in: packages/platform-discord/src/gateway/client.ts:63
Defaults to the DiscordApplication reference; None registers globally.
intents
Section titled “intents”
readonlyintents:number| readonlynumber[]
Defined in: packages/platform-discord/src/gateway/client.ts:65
A bitfield or a list of intent bits.
readyTimeout?
Section titled “readyTimeout?”
readonlyoptionalreadyTimeout?:Input
Defined in: packages/platform-discord/src/gateway/client.ts:70
How long to wait for READY before failing the attempt.
restTimeout?
Section titled “restTimeout?”
readonlyoptionalrestTimeout?: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.
shardCount?
Section titled “shardCount?”
readonlyoptionalshardCount?:number
Defined in: packages/platform-discord/src/gateway/client.ts:67
Shard count to request from dfx. Defaults to one shard.
readonlytoken:Redacted<string>
Defined in: packages/platform-discord/src/gateway/client.ts:59
Bot token. Pass a Config.Redacted value directly.