forked from OpenGamers/abaddon
dont allow set token when connected
This commit is contained in:
@@ -364,8 +364,10 @@ void DiscordClient::LeaveGuild(Snowflake id) {
|
||||
}
|
||||
|
||||
void DiscordClient::UpdateToken(std::string token) {
|
||||
m_token = token;
|
||||
m_http.SetAuth(token);
|
||||
if (!IsStarted()) {
|
||||
m_token = token;
|
||||
m_http.SetAuth(token);
|
||||
}
|
||||
}
|
||||
|
||||
void DiscordClient::HandleGatewayMessageRaw(std::string str) {
|
||||
|
||||
Reference in New Issue
Block a user