Skip to main content

GatewayOpcodes

@discordeno/bot


Documentation / @discordeno/bot / GatewayOpcodes

Enumeration: GatewayOpcodes

Defined in: packages/types/dist/types/shared.d.ts:816

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

Enumeration Members

Dispatch

Dispatch: 0

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

An event was dispatched.


Heartbeat

Heartbeat: 1

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

Fired periodically by the client to keep the connection alive.


HeartbeatACK

HeartbeatACK: 11

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

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


Hello

Hello: 10

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

Sent immediately after connecting, contains the heartbeat_interval to use.


Identify

Identify: 2

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

Starts a new session during the initial handshake.


InvalidSession

InvalidSession: 9

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

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


PresenceUpdate

PresenceUpdate: 3

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

Update the client's presence.


Reconnect

Reconnect: 7

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

You should attempt to reconnect and resume immediately.


RequestGuildMembers

RequestGuildMembers: 8

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

Request information about offline guild members in a large guild.


RequestSoundboardSounds

RequestSoundboardSounds: 31

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

Used to request soundboard sounds for a list of guilds.


Resume

Resume: 6

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

Resume a previous session that was disconnected.


VoiceStateUpdate

VoiceStateUpdate: 4

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

Used to join/leave or move between voice channels.