Enum GatewayOpCode
- Namespace
- DSharpPlus.Net.Abstractions
- Assembly
- DSharpPlus.dll
Specifies an OP code in a gateway payload.
public enum GatewayOpCode
- Extension Methods
Fields
Dispatch = 0Used for dispatching events.
GuildSync = 12Used to request guild synchronization.
Heartbeat = 1Used for pinging the gateway or client, to ensure the connection is still alive.
HeartbeatAck = 11Used to acknowledge a heartbeat.
Hello = 10Used by the gateway upon connecting.
Identify = 2Used for initial handshake with the gateway.
InvalidSession = 9Used to notify the client about an invalidated session.
Reconnect = 7Used to notify the client that it has to reconnect.
RequestGuildMembers = 8Used to request guild members.
Resume = 6Used to resume a closed connection.
StatusUpdate = 3Used to update client status.
VoiceServerPing = 5Used for pinging the voice gateway or client, to ensure the connection is still alive.
VoiceStateUpdate = 4Used to update voice state, when joining, leaving, or moving between voice channels.