DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
|
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) | |
discord_core_api::voice_connection::voice_connection | ( | discord_core_internal::websocket_client * | baseShardNew, |
std::atomic_bool * | doWeQuitNew | ||
) |
the constructor.
baseShardNew | a pointer to the base shard that this voice connection belongs to. |
doWeQuitNew | a pointer to the global signalling boolean for exiting the application. |
Definition at line 322 of file VoiceConnection.cpp.
void discord_core_api::voice_connection::connect | ( | const voice_connect_init_data & | initData | ) |
initData | a discord_coer_api::voice_connect_init_dat structure. |
Definition at line 350 of file VoiceConnection.cpp.
snowflake discord_core_api::voice_connection::getChannelId | ( | ) |
Definition at line 332 of file VoiceConnection.cpp.