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

VoiceConnection class - represents the connection to a given voice ChannelData. More...

#include <VoiceConnection.hpp>

Inherits DiscordCoreAPI::DiscordCoreInternal::WebSocketCore.

Public Member Functions

void connect (const VoiceConnectInitData &initData)
 Connects to a currently held voice channel. More...
Snowflake getChannelId ()
 Collects the currently connected-to voice ChannelData's id. More...
 VoiceConnection (DiscordCoreClient *discordCoreClientNew, DiscordCoreInternal::WebSocketClient *baseShardNew, std::atomic_bool *doWeQuitNew)

Constructor & Destructor Documentation

◆ VoiceConnection()

DiscordCoreAPI::VoiceConnection::VoiceConnection ( DiscordCoreClient discordCoreClientNew,
DiscordCoreInternal::WebSocketClient *  baseShardNew,
std::atomic_bool *  doWeQuitNew 

The constructor.

discordCoreClientNewA pointer to the main isntance of DiscordCoreClient.
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 317 of file VoiceConnection.cpp.

Member Function Documentation

◆ connect()

void DiscordCoreAPI::VoiceConnection::connect ( const VoiceConnectInitData initData)
initDataA DiscordCoerAPI::VoiceConnectInitDat structure.

Definition at line 346 of file VoiceConnection.cpp.

Here is the call graph for this function:

◆ getChannelId()

Snowflake DiscordCoreAPI::VoiceConnection::getChannelId ( )
Snowflake A Snowflake containing the ChannelData's id.

Definition at line 329 of file VoiceConnection.cpp.

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