Skip to main content

GatewayOpCodes

Index

Enumeration Members

Dispatch

Dispatch: 0

An event was dispatched

Heartbeat

Heartbeat: 1

Fired periodically by the client to keep the connection alive

HeartbeatAck

HeartbeatAck: 10

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

Hello

Hello: 9

Sent immediately after connecting, contains the heartbeat_interval to use

Identify

Identify: 2

Starts a new session during the initial handshake

InvalidSession

InvalidSession: 8

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

PresenceUpdate

PresenceUpdate: 3

Update the client’s presence

Reconnect

Reconnect: 6

You should attempt to reconnect and resume immediately

RequestGuildMembers

RequestGuildMembers: 7

Request information about offline guild members in a large guild

Resume

Resume: 5

Resume a previous session that was disconnected

VoiceStateUpdate

VoiceStateUpdate: 4

Used to join/leave or move between voice channels