mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-19 20:11:59 +03:00
set user-agent through ini
This commit is contained in:
@@ -421,6 +421,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());
|
||||
|
||||
Reference in New Issue
Block a user