![]() |
DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
|
VoiceConnection class - represents the connection to a given voice Channel. More...
#include <VoiceConnection.hpp>
Inherits DiscordCoreInternal::WebSocketCore, and DiscordCoreInternal::UDPConnection.
Public Member Functions | |
void | connect (const VoiceConnectInitData &initData) noexcept |
Connects to a currently held voice channel. | |
Snowflake | getChannelId () noexcept |
Collects the currently connected-to voice Channel's id. | |
VoiceConnection (DiscordCoreClient *clientPtrNew, DiscordCoreInternal::WebSocketClient *baseShardNew, std::atomic_bool *doWeQuitNew) noexcept | |
The constructor. | |
|
noexcept |
initData | A DiscordCoerAPI::VoiceConnectInitDat structure. |
Definition at line 278 of file VoiceConnection.cpp.
|
noexcept |
Definition at line 260 of file VoiceConnection.cpp.