diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-09-06 03:29:13 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-09-06 03:29:13 -0400 |
commit | 90437de2c031f6cf0b58603d9cb5582064176374 (patch) | |
tree | 4eef4afe00c167d600c1e9616759cd0fe147b001 /src/discord/voiceclient.hpp | |
parent | 654e225093db165e0c38a658103025dd7233bc71 (diff) | |
download | abaddon-portaudio-90437de2c031f6cf0b58603d9cb5582064176374.tar.gz abaddon-portaudio-90437de2c031f6cf0b58603d9cb5582064176374.zip |
make voice disconnect/reconnect work
Diffstat (limited to 'src/discord/voiceclient.hpp')
-rw-r--r-- | src/discord/voiceclient.hpp | 4 |
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; |