summaryrefslogtreecommitdiff
path: root/src/discord/voiceclient.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/discord/voiceclient.hpp')
-rw-r--r--src/discord/voiceclient.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/discord/voiceclient.hpp b/src/discord/voiceclient.hpp
index 67919e5..f81763b 100644
--- a/src/discord/voiceclient.hpp
+++ b/src/discord/voiceclient.hpp
@@ -173,6 +173,7 @@ public:
~DiscordVoiceClient();
void Start();
+ void Stop();
void SetSessionID(std::string_view session_id);
void SetEndpoint(std::string_view endpoint);
@@ -180,6 +181,8 @@ public:
void SetServerID(Snowflake id);
void SetUserID(Snowflake id);
+ [[nodiscard]] bool IsConnected() const noexcept;
+
private:
void OnGatewayMessage(const std::string &str);
void HandleGatewayHello(const VoiceGatewayMessage &m);
@@ -198,6 +201,7 @@ private:
std::string m_endpoint;
std::string m_token;
Snowflake m_server_id;
+ Snowflake m_channel_id;
Snowflake m_user_id;
std::string m_ip;