Skip to main content

ShardEvents

@discordeno/bot


Documentation / @discordeno/bot / ShardEvents

Interface: ShardEvents

Defined in: packages/gateway/dist/types/types.d.ts:119

Properties

connected()?

optional connected: (shard) => unknown

Defined in: packages/gateway/dist/types/types.d.ts:137

The shard is connected with Discord's gateway.

Parameters

shard

DiscordenoShard

Returns

unknown


connecting()?

optional connecting: (shard) => unknown

Defined in: packages/gateway/dist/types/types.d.ts:135

The shard started to connect to Discord's gateway.

Parameters

shard

DiscordenoShard

Returns

unknown


disconnected()?

optional disconnected: (shard) => unknown

Defined in: packages/gateway/dist/types/types.d.ts:139

The shard has been disconnected from Discord's gateway.

Parameters

shard

DiscordenoShard

Returns

unknown


heartbeat()?

optional heartbeat: (shard) => unknown

Defined in: packages/gateway/dist/types/types.d.ts:121

A heartbeat has been send.

Parameters

shard

DiscordenoShard

Returns

unknown


heartbeatAck()?

optional heartbeatAck: (shard) => unknown

Defined in: packages/gateway/dist/types/types.d.ts:123

A heartbeat ACK was received.

Parameters

shard

DiscordenoShard

Returns

unknown


hello()?

optional hello: (shard) => unknown

Defined in: packages/gateway/dist/types/types.d.ts:125

Shard has received a Hello payload.

Parameters

shard

DiscordenoShard

Returns

unknown


identified()?

optional identified: (shard) => unknown

Defined in: packages/gateway/dist/types/types.d.ts:143

The shard has successfully been identified itself with Discord.

Parameters

shard

DiscordenoShard

Returns

unknown


identifying()?

optional identifying: (shard) => unknown

Defined in: packages/gateway/dist/types/types.d.ts:141

The shard has started to identify itself to Discord.

Parameters

shard

DiscordenoShard

Returns

unknown


invalidSession()?

optional invalidSession: (shard, resumable) => unknown

Defined in: packages/gateway/dist/types/types.d.ts:127

The Shards session has been invalidated.

Parameters

shard

DiscordenoShard

resumable

boolean

Returns

unknown


message()?

optional message: (shard, payload) => unknown

Defined in: packages/gateway/dist/types/types.d.ts:145

The shard has received a message from Discord.

Parameters

shard

DiscordenoShard

payload
d

unknown

op

number

s

null | number

t

null | GatewayEventNames

Returns

unknown


requestedReconnect()?

optional requestedReconnect: (shard) => unknown

Defined in: packages/gateway/dist/types/types.d.ts:133

Discord has requested the Shard to reconnect.

Parameters

shard

DiscordenoShard

Returns

unknown


resumed()?

optional resumed: (shard) => unknown

Defined in: packages/gateway/dist/types/types.d.ts:131

The shard has successfully resumed an old session.

Parameters

shard

DiscordenoShard

Returns

unknown


resuming()?

optional resuming: (shard) => unknown

Defined in: packages/gateway/dist/types/types.d.ts:129

The shard has started a resume action.

Parameters

shard

DiscordenoShard

Returns

unknown