Skip to main content

GatewayOpcodes

@discordeno/botDocs


Documentation / @discordeno/bot / GatewayOpcodes

Enumeration: GatewayOpcodes

https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-opcodes

Enumeration Members

Dispatch

Dispatch: 0

An event was dispatched.

Defined in

packages/types/dist/types/shared.d.ts:818


Heartbeat

Heartbeat: 1

Fired periodically by the client to keep the connection alive.

Defined in

packages/types/dist/types/shared.d.ts:820


HeartbeatACK

HeartbeatACK: 11

Sent in response to receiving a heartbeat to acknowledge that it has been received.

Defined in

packages/types/dist/types/shared.d.ts:838


Hello

Hello: 10

Sent immediately after connecting, contains the heartbeat_interval to use.

Defined in

packages/types/dist/types/shared.d.ts:836


Identify

Identify: 2

Starts a new session during the initial handshake.

Defined in

packages/types/dist/types/shared.d.ts:822


InvalidSession

InvalidSession: 9

The session has been invalidated. You should reconnect and identify/resume accordingly.

Defined in

packages/types/dist/types/shared.d.ts:834


PresenceUpdate

PresenceUpdate: 3

Update the client's presence.

Defined in

packages/types/dist/types/shared.d.ts:824


Reconnect

Reconnect: 7

You should attempt to reconnect and resume immediately.

Defined in

packages/types/dist/types/shared.d.ts:830


RequestGuildMembers

RequestGuildMembers: 8

Request information about offline guild members in a large guild.

Defined in

packages/types/dist/types/shared.d.ts:832


RequestSoundboardSounds

RequestSoundboardSounds: 31

Used to request soundboard sounds for a list of guilds.

Defined in

packages/types/dist/types/shared.d.ts:840


Resume

Resume: 6

Resume a previous session that was disconnected.

Defined in

packages/types/dist/types/shared.d.ts:828


VoiceStateUpdate

VoiceStateUpdate: 4

Used to join/leave or move between voice channels.

Defined in

packages/types/dist/types/shared.d.ts:826