Merge branch 'master' into disk-cache

This commit is contained in:
ouwou
2020-11-28 02:16:59 -05:00
9 changed files with 51 additions and 15 deletions

View File

@@ -424,6 +424,11 @@ void DiscordClient::UpdateToken(std::string token) {
}
}
void DiscordClient::SetUserAgent(std::string agent) {
m_http.SetUserAgent(agent);
m_websocket.SetUserAgent(agent);
}
void DiscordClient::HandleGatewayMessageRaw(std::string str) {
// handles multiple zlib compressed messages, calling HandleGatewayMessage when a full message is received
std::vector<uint8_t> buf(str.begin(), str.end());