ShardEvents
@discordeno/gateway • Docs
Documentation / @discordeno/gateway / ShardEvents
Interface: ShardEvents
Properties
connected()?
optional
connected: (shard
) =>unknown
The shard is connected with Discord's gateway.
Parameters
• shard: DiscordenoShard
Returns
unknown
Defined in
connecting()?
optional
connecting: (shard
) =>unknown
The shard started to connect to Discord's gateway.
Parameters
• shard: DiscordenoShard
Returns
unknown
Defined in
disconnected()?
optional
disconnected: (shard
) =>unknown
The shard has been disconnected from Discord's gateway.
Parameters
• shard: DiscordenoShard
Returns
unknown
Defined in
heartbeat()?
optional
heartbeat: (shard
) =>unknown
A heartbeat has been send.
Parameters
• shard: DiscordenoShard
Returns
unknown
Defined in
heartbeatAck()?
optional
heartbeatAck: (shard
) =>unknown
A heartbeat ACK was received.
Parameters
• shard: DiscordenoShard
Returns
unknown
Defined in
hello()?
optional
hello: (shard
) =>unknown
Shard has received a Hello payload.
Parameters
• shard: DiscordenoShard
Returns
unknown
Defined in
identified()?
optional
identified: (shard
) =>unknown
The shard has successfully been identified itself with Discord.
Parameters
• shard: DiscordenoShard
Returns
unknown
Defined in
identifying()?
optional
identifying: (shard
) =>unknown
The shard has started to identify itself to Discord.
Parameters
• shard: DiscordenoShard
Returns
unknown
Defined in
invalidSession()?
optional
invalidSession: (shard
,resumable
) =>unknown
The Shards session has been invalidated.
Parameters
• shard: DiscordenoShard
• resumable: boolean
Returns
unknown
Defined in
message()?
optional
message: (shard
,payload
) =>unknown
The shard has received a message from Discord.
Parameters
• shard: DiscordenoShard
• payload
• payload.d: unknown
• payload.op: number
• payload.s: null
| number
• payload.t: null
| GatewayEventNames
Returns
unknown
Defined in
requestedReconnect()?
optional
requestedReconnect: (shard
) =>unknown
Discord has requested the Shard to reconnect.
Parameters
• shard: DiscordenoShard
Returns
unknown
Defined in
resumed()?
optional
resumed: (shard
) =>unknown
The shard has successfully resumed an old session.
Parameters
• shard: DiscordenoShard
Returns
unknown
Defined in
resuming()?
optional
resuming: (shard
) =>unknown
The shard has started a resume action.
Parameters
• shard: DiscordenoShard
Returns
unknown