From 2ec60ce5ac65f0783c6bd636af0e840605aa8c60 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Fri, 18 Dec 2020 23:55:28 -0500 Subject: fix presence in identify and update build number --- discord/objects.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'discord/objects.cpp') 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) { -- cgit v1.2.3