Skip to main content

ShardEvents

@discordeno/gatewayDocs


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

gateway/src/types.ts:142


connecting()?

optional connecting: (shard) => unknown

The shard started to connect to Discord's gateway.

Parameters

shard: DiscordenoShard

Returns

unknown

Defined in

gateway/src/types.ts:140


disconnected()?

optional disconnected: (shard) => unknown

The shard has been disconnected from Discord's gateway.

Parameters

shard: DiscordenoShard

Returns

unknown

Defined in

gateway/src/types.ts:144


heartbeat()?

optional heartbeat: (shard) => unknown

A heartbeat has been send.

Parameters

shard: DiscordenoShard

Returns

unknown

Defined in

gateway/src/types.ts:126


heartbeatAck()?

optional heartbeatAck: (shard) => unknown

A heartbeat ACK was received.

Parameters

shard: DiscordenoShard

Returns

unknown

Defined in

gateway/src/types.ts:128


hello()?

optional hello: (shard) => unknown

Shard has received a Hello payload.

Parameters

shard: DiscordenoShard

Returns

unknown

Defined in

gateway/src/types.ts:130


identified()?

optional identified: (shard) => unknown

The shard has successfully been identified itself with Discord.

Parameters

shard: DiscordenoShard

Returns

unknown

Defined in

gateway/src/types.ts:148


identifying()?

optional identifying: (shard) => unknown

The shard has started to identify itself to Discord.

Parameters

shard: DiscordenoShard

Returns

unknown

Defined in

gateway/src/types.ts:146


invalidSession()?

optional invalidSession: (shard, resumable) => unknown

The Shards session has been invalidated.

Parameters

shard: DiscordenoShard

resumable: boolean

Returns

unknown

Defined in

gateway/src/types.ts:132


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

gateway/src/types.ts:150


requestedReconnect()?

optional requestedReconnect: (shard) => unknown

Discord has requested the Shard to reconnect.

Parameters

shard: DiscordenoShard

Returns

unknown

Defined in

gateway/src/types.ts:138


resumed()?

optional resumed: (shard) => unknown

The shard has successfully resumed an old session.

Parameters

shard: DiscordenoShard

Returns

unknown

Defined in

gateway/src/types.ts:136


resuming()?

optional resuming: (shard) => unknown

The shard has started a resume action.

Parameters

shard: DiscordenoShard

Returns

unknown

Defined in

gateway/src/types.ts:134