diff options
author | George Hazan <ghazan@miranda.im> | 2016-12-29 18:53:03 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2016-12-29 18:53:03 +0300 |
commit | 50e87bcbf1b3a716f155e504a09df1c0ff1a66f5 (patch) | |
tree | 671924fd03f4f0a3a5da0af7cd4fe4cc841d54ad /protocols/Discord/src/server.cpp | |
parent | 95ee503b0f0a4cb434de65f2d9d7375356e39d74 (diff) |
support for the SnowFlake type for Miranda
Diffstat (limited to 'protocols/Discord/src/server.cpp')
-rw-r--r-- | protocols/Discord/src/server.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/Discord/src/server.cpp b/protocols/Discord/src/server.cpp index d0550dccbb..8f8f551890 100644 --- a/protocols/Discord/src/server.cpp +++ b/protocols/Discord/src/server.cpp @@ -35,9 +35,11 @@ void CDiscordProto::OnReceiveMyInfo(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest* return; } + m_ownId = _wtoi64(root->at("id").as_mstring()); + setId("id", m_ownId); + setWString("Username", root->at("username").as_mstring()); setByte("MfaEnabled", root->at("mfa_enabled").as_bool()); - setWString("id", root->at("id").as_mstring()); setWString("AvatarHash", root->at("avatar").as_mstring()); setDword("Discriminator", root->at("discriminator").as_int()); setWString("Email", root->at("email").as_mstring()); |