From 11358da24e0e73044aed389b1dbbf479808ca036 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Sun, 28 Feb 2021 01:44:31 -0500 Subject: handle UPDATE in GUILD_MEMBER_LIST_UPDATE --- discord/objects.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'discord/objects.hpp') diff --git a/discord/objects.hpp b/discord/objects.hpp index 6cbef69..bdc16f8 100644 --- a/discord/objects.hpp +++ b/discord/objects.hpp @@ -152,9 +152,10 @@ struct GuildMemberListUpdateMessage { struct OpObject { std::string Op; - int Index; - std::vector> Items; // SYNC - std::pair Range; // SYNC + std::optional Index; + std::optional>> Items; // SYNC + std::optional> Range; // SYNC + std::optional> OpItem; // UPDATE friend void from_json(const nlohmann::json &j, OpObject &m); }; -- cgit v1.2.3