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

Go to the source code of this file.

Classes and Structures

class  discord_core_api::voice_connection
 voice_connection class - represents the connection to a given voice channel_data. More...
 
struct  discord_core_api::voice_user_payload
 The voice data for a given user, as raw PCM data, along with their Id. More...
 
class  discord_core_api::voice_websocket_close
 Voice websocket close codes. More...
 

Namespaces

namespace  discord_core_api
 The main namespace for the forward-facing interfaces.
 

Enumerations

enum class  discord_core_api::voice_active_state : int8_t { discord_core_api::connecting = 0 , discord_core_api::playing = 1 , discord_core_api::stopped = 2 , discord_core_api::paused = 3 , exiting = 4 }
 For the various active states of the voice_connection class. More...
 
enum class  discord_core_api::voice_connection_state : uint8_t {
  discord_core_api::Collecting_Init_Data = 0 , discord_core_api::Initializing_WebSocket = 1 , discord_core_api::Collecting_Hello = 2 , discord_core_api::Sending_Identify = 3 ,
  discord_core_api::Collecting_Ready = 4 , discord_core_api::Initializing_DatagramSocket = 5 , discord_core_api::Sending_Select_Protocol = 6 , discord_core_api::Collecting_Session_Description = 7
}
 For the various connection states of the voice_connection class. More...
 
enum class  discord_core_api::voice_socket_op_codes {
  discord_core_api::identify = 0 , discord_core_api::Select_Protocol = 1 , discord_core_api::Ready_Server = 2 , discord_core_api::heartbeat = 3 ,
  discord_core_api::Session_Description = 4 , discord_core_api::speaking = 5 , discord_core_api::Heartbeat_ACK = 6 , discord_core_api::resume = 7 ,
  discord_core_api::hello = 8 , discord_core_api::resumed = 9 , discord_core_api::Client_Disconnect = 13
}
 The various opcodes that could be sent/received by the voice-websocket. More...