diff options
Diffstat (limited to 'discord/objects.hpp')
-rw-r--r-- | discord/objects.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
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<std::unique_ptr<Item>> Items; // SYNC - std::pair<int, int> Range; // SYNC + std::optional<int> Index; + std::optional<std::vector<std::unique_ptr<Item>>> Items; // SYNC + std::optional<std::pair<int, int>> Range; // SYNC + std::optional<std::unique_ptr<Item>> OpItem; // UPDATE friend void from_json(const nlohmann::json &j, OpObject &m); }; |