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

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 DiscordCoreAPI::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.
 

Member Function Documentation

◆ connect()

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

Definition at line 201 of file VoiceConnection.cpp.

◆ getChannelId()

Snowflake DiscordCoreAPI::VoiceConnection::getChannelId ( )
noexcept
Returns
DiscordCoreAPI::Snowflake A Snowflake containing the Channel's id.

Definition at line 174 of file VoiceConnection.cpp.


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