From 0b8c83eaa1fdb0fcb610f9181145abde3d60d803 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Mon, 23 Nov 2020 20:34:09 -0500 Subject: progress 2 --- discord/emoji.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'discord/emoji.hpp') diff --git a/discord/emoji.hpp b/discord/emoji.hpp index e4839f2..18e69d3 100644 --- a/discord/emoji.hpp +++ b/discord/emoji.hpp @@ -6,14 +6,14 @@ #include "user.hpp" struct Emoji { - Snowflake ID; // null - std::string Name; // null (in reactions) - std::vector Roles; // opt - User Creator; // opt - bool NeedsColons = false; // opt - bool IsManaged = false; // opt - bool IsAnimated = false; // opt - bool IsAvailable = false; // opt + Snowflake ID; // null + std::string Name; // null (in reactions) + std::optional> Roles; + std::optional Creator; // only reliable to access ID + std::optional NeedsColons; + std::optional IsManaged; + std::optional IsAnimated; + std::optional IsAvailable; friend void from_json(const nlohmann::json &j, Emoji &m); -- cgit v1.2.3