diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2024-03-31 21:32:41 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2024-03-31 21:32:41 -0400 |
commit | b7906eb918d0df1fa1508a77732113ca94056e4e (patch) | |
tree | fa533b611822b25924d4e2947bcf90307c6e5cff /src/discord | |
parent | 1367e162c0581bdea7ec1d2129b18e70d7d43d2b (diff) | |
parent | fda687eaa8b33899648e97798a7fbcaa9edda12b (diff) | |
download | abaddon-portaudio-b7906eb918d0df1fa1508a77732113ca94056e4e.tar.gz abaddon-portaudio-b7906eb918d0df1fa1508a77732113ca94056e4e.zip |
Merge branch 'master' into stages
Diffstat (limited to 'src/discord')
-rw-r--r-- | src/discord/discord.hpp | 2 | ||||
-rw-r--r-- | src/discord/httpclient.cpp | 6 | ||||
-rw-r--r-- | src/discord/voiceclient.cpp | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/src/discord/discord.hpp b/src/discord/discord.hpp index ed7245e..44a7328 100644 --- a/src/discord/discord.hpp +++ b/src/discord/discord.hpp @@ -331,7 +331,7 @@ private: std::string m_token; - uint32_t m_build_number = 142000; + uint32_t m_build_number = 279382; void AddUserToGuild(Snowflake user_id, Snowflake guild_id); std::map<Snowflake, std::set<Snowflake>> m_guild_to_users; diff --git a/src/discord/httpclient.cpp b/src/discord/httpclient.cpp index 37436ee..25839f8 100644 --- a/src/discord/httpclient.cpp +++ b/src/discord/httpclient.cpp @@ -143,7 +143,13 @@ void HTTPClient::AddHeaders(http::request &r) { r.set_header(name, val); } curl_easy_setopt(r.get_curl(), CURLOPT_COOKIE, m_cookie.c_str()); + // https://github.com/curl/curl/issues/13226 + // TODO remove when new release +#if defined(LIBCURL_VERSION_NUM) && (LIBCURL_VERSION_NUM == 0x080701 || LIBCURL_VERSION_NUM == 0x080700) + // +#else curl_easy_setopt(r.get_curl(), CURLOPT_ACCEPT_ENCODING, ""); +#endif } void HTTPClient::OnResponse(const http::response_type &r, const std::function<void(http::response_type r)> &cb) { diff --git a/src/discord/voiceclient.cpp b/src/discord/voiceclient.cpp index 164033f..c0c83b2 100644 --- a/src/discord/voiceclient.cpp +++ b/src/discord/voiceclient.cpp @@ -265,6 +265,8 @@ void DiscordVoiceClient::OnGatewayMessage(const std::string &str) { case VoiceGatewayOp::Speaking: HandleGatewaySpeaking(msg); break; + case VoiceGatewayOp::HeartbeatAck: + break; // stfu default: const auto opcode_int = static_cast<int>(msg.Opcode); m_log->warn("Unhandled opcode: {}", opcode_int); |