fix presence in identify and update build number

This commit is contained in:
ouwou
2020-12-18 23:55:28 -05:00
parent 712eba816e
commit 2ec60ce5ac
5 changed files with 23 additions and 14 deletions

View File

@@ -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) {