diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-12-18 23:55:28 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-12-18 23:55:28 -0500 |
commit | 2ec60ce5ac65f0783c6bd636af0e840605aa8c60 (patch) | |
tree | 9246e6475689ebea803c33cdadf598aa611fff08 /discord/objects.cpp | |
parent | 712eba816e1824c7babeffc946dad0335bd87913 (diff) | |
download | abaddon-portaudio-2ec60ce5ac65f0783c6bd636af0e840605aa8c60.tar.gz abaddon-portaudio-2ec60ce5ac65f0783c6bd636af0e840605aa8c60.zip |
fix presence in identify and update build number
Diffstat (limited to 'discord/objects.cpp')
-rw-r--r-- | discord/objects.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/discord/objects.cpp b/discord/objects.cpp index 35cb856..8008177 100644 --- a/discord/objects.cpp +++ b/discord/objects.cpp @@ -85,11 +85,7 @@ void to_json(nlohmann::json &j, const LazyLoadRequestMessage &m) { void to_json(nlohmann::json &j, const UpdateStatusMessage &m) { j["op"] = GatewayOp::UpdateStatus; - j["d"] = nlohmann::json::object(); - j["d"]["activities"] = m.Activities; - j["d"]["status"] = m.Status; - j["d"]["afk"] = m.IsAFK; - j["d"]["since"] = nullptr; + j["d"] = m.Presence; } void from_json(const nlohmann::json &j, ReadyEventData &m) { |