ShardCreateOptions
Documentation / @discordeno/gateway / ShardCreateOptions
Interface: ShardCreateOptions
Defined in: Shard.ts:918
Properties
connection
connection:
ShardGatewayConfig
Defined in: Shard.ts:922
The connection details
events
events:
ShardEvents
Defined in: Shard.ts:924
The event handlers for events on the shard.
id
id:
number
Defined in: Shard.ts:920
The shard id
logger?
optionallogger?:Pick<{ },"debug"|"info"|"warn"|"error"|"fatal">
Defined in: Shard.ts:926
The logger for the shard
makePresence?
optionalmakePresence?: () =>Promise<DiscordUpdatePresence|undefined>
Defined in: Shard.ts:930
Function to create the bot status to send on Identify requests
Returns
Promise<DiscordUpdatePresence | undefined>
requestIdentify?
optionalrequestIdentify?: () =>Promise<void>
Defined in: Shard.ts:928
The handler to request a space to make an identify request.
Returns
Promise<void>