diff options
Diffstat (limited to 'src/discord/objects.cpp')
-rw-r--r-- | src/discord/objects.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/discord/objects.cpp b/src/discord/objects.cpp index 8d85f9a..0ee96dc 100644 --- a/src/discord/objects.cpp +++ b/src/discord/objects.cpp @@ -77,7 +77,7 @@ void from_json(const nlohmann::json &j, GuildMemberListUpdateMessage &m) { } void to_json(nlohmann::json &j, const LazyLoadRequestMessage &m) { - j["op"] = GatewayOp::LazyLoadRequest; + j["op"] = GatewayOp::GuildSubscriptions; j["d"] = nlohmann::json::object(); j["d"]["guild_id"] = m.GuildID; if (m.Channels.has_value()) { @@ -98,7 +98,7 @@ void to_json(nlohmann::json &j, const LazyLoadRequestMessage &m) { } void to_json(nlohmann::json &j, const UpdateStatusMessage &m) { - j["op"] = GatewayOp::UpdateStatus; + j["op"] = GatewayOp::PresenceUpdate; j["d"] = nlohmann::json::object(); j["d"]["since"] = m.Since; j["d"]["activities"] = m.Activities; |