enum GatewayOpcodes

external
export declare enum GatewayOpcodes

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

Members

external
Dispatch = 0

An event was dispatched

external
Heartbeat = 1

A bidirectional opcode to maintain an active gateway connection. Fired periodically by the client, or fired by the gateway to request an immediate heartbeat from the client.

external
HeartbeatAck = 11

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

external
Hello = 10

Sent immediately after connecting, contains the heartbeat_interval to use

external
Identify = 2

Starts a new session during the initial handshake

external
InvalidSession = 9

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

external
PresenceUpdate = 3

Update the client's presence

external
Reconnect = 7

You should attempt to reconnect and resume immediately

external
RequestGuildMembers = 8

Request information about offline guild members in a large guild

external
RequestSoundboardSounds = 31

Request information about soundboard sounds in a set of guilds

external
Resume = 6

Resume a previous session that was disconnected

external
VoiceStateUpdate = 4

Used to join/leave or move between voice channels