DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
Loading...
Searching...
No Matches
WebSocketEntities.hpp File Reference
Include dependency graph for WebSocketEntities.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  DiscordCoreInternal::WebSocketOpCodes {
  Dispatch = 0 , Heartbeat = 1 , Identify = 2 , Presence_Update = 3 ,
  Voice_State_Update = 4 , Resume = 6 , Reconnect = 7 , Request_Guild_Members = 8 ,
  Invalid_Session = 9 , Hello = 10 , Heartbeat_ACK = 11
}
 For the opcodes that could be sent/received via Discord's websockets. More...
 

Enumeration Type Documentation

◆ WebSocketOpCodes

Enumerator
Dispatch 

An event was dispatched.

Heartbeat 

Fired periodically by the client to keep the connection alive.

Identify 

Starts a new session during the initial handshake.

Presence_Update 

Update the client's presence.

Voice_State_Update 

Used to join/leave or move between voice channels.

Resume 

Resume a previous session that was disconnected.

Reconnect 

You should attempt to reconnect and resume immediately.

Request_Guild_Members 

Request information about offline guild members in a large guild.

Hello 

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

Sent immediately after connecting, contains the heartbeat_interval to use.

Heartbeat_ACK 

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

Definition at line 49 of file WebSocketEntities.hpp.