DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
Loading...
Searching...
No Matches
discord_core_api::voice_connection Class Reference

voice_connection class - represents the connection to a given voice channel_data. More...

#include <VoiceConnection.hpp>

Inherits discord_core_api::discord_core_internal::websocket_core.

Public Member Functions

void connect (const voice_connect_init_data &initData)
 Connects to a currently held voice channel. More...
 
snowflake getChannelId ()
 Collects the currently connected-to voice channel_data's id. More...
 
 voice_connection (discord_core_internal::websocket_client *baseShardNew, std::atomic_bool *doWeQuitNew)
 

Constructor & Destructor Documentation

◆ voice_connection()

discord_core_api::voice_connection::voice_connection ( discord_core_internal::websocket_client baseShardNew,
std::atomic_bool *  doWeQuitNew 
)

the constructor.

Parameters
baseShardNewa pointer to the base shard that this voice connection belongs to.
doWeQuitNewa pointer to the global signalling boolean for exiting the application.

Definition at line 322 of file VoiceConnection.cpp.

Member Function Documentation

◆ connect()

void discord_core_api::voice_connection::connect ( const voice_connect_init_data initData)
Parameters
initDataa discord_coer_api::voice_connect_init_dat structure.

Definition at line 350 of file VoiceConnection.cpp.

Here is the call graph for this function:

◆ getChannelId()

snowflake discord_core_api::voice_connection::getChannelId ( )
Returns
snowflake a snowflake containing the channel_data's id.

Definition at line 332 of file VoiceConnection.cpp.


The documentation for this class was generated from the following files: