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