Enum GatewayOpcode
Contains all valid opcodes sent/received by the client.
public enum GatewayOpcode : byte
Fields
Dispatch = 0An event was dispatched.
Heartbeat = 1Fired periodically by the client to keep the connection alive.
HeartbeatACK = 11Sent in response to receiving a heartbeat to acknowledge that it has been received.
Hello = 10Sent immediately after connecting, contains the
heartbeat_intervalto use.Identify = 2Starts a new session during the initial handshake.
InvalidSession = 9The session has been invalidated. You should reconnect and identify/resume accordingly.
PresenceUpdate = 3Update the client's presence.
Reconnect = 7You should attempt to reconnect and resume immediately.
RequestGuildUsers = 8Request information about offline guild members in a large guild.
Resume = 6Resume a previous session that was disconnected.
VoiceStateUpdate = 4Used to join/leave or move between voice channels.