diff --git a/src/discord/activity.cpp b/src/discord/activity.cpp index 95dda5d9..bc95714d 100644 --- a/src/discord/activity.cpp +++ b/src/discord/activity.cpp @@ -66,7 +66,7 @@ void from_json(const nlohmann::json &j, ActivityData &m) { JS_ON("url", m.URL); JS_D("created_at", m.CreatedAt); JS_O("timestamps", m.Timestamps); - JS_O("application_id", m.ApplicationID); + JS_ON("application_id", m.ApplicationID); JS_ON("details", m.Details); JS_ON("state", m.State); JS_ON("emoji", m.Emoji); diff --git a/src/discord/channel.cpp b/src/discord/channel.cpp index 8b3ee19a..06c323f7 100644 --- a/src/discord/channel.cpp +++ b/src/discord/channel.cpp @@ -35,7 +35,7 @@ void from_json(const nlohmann::json &j, ChannelData &m) { JS_O("recipient_ids", m.RecipientIDs); JS_ON("icon", m.Icon); JS_O("owner_id", m.OwnerID); - JS_O("application_id", m.ApplicationID); + JS_ON("application_id", m.ApplicationID); JS_ON("parent_id", m.ParentID); JS_ON("last_pin_timestamp", m.LastPinTimestamp); JS_O("thread_metadata", m.ThreadMetadata);