diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-12-05 18:18:51 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-12-05 18:18:51 -0500 |
commit | b84a98fbb99c1b9184ea6f12d7366028d488beb3 (patch) | |
tree | 2138967bc12d2f2ea08f858839fe205812cf2459 /discord/member.hpp | |
parent | 0935e43baeabd9b3effc97c2d6a597bd8b61471a (diff) | |
download | abaddon-portaudio-b84a98fbb99c1b9184ea6f12d7366028d488beb3.tar.gz abaddon-portaudio-b84a98fbb99c1b9184ea6f12d7366028d488beb3.zip |
member, emoji
Diffstat (limited to 'discord/member.hpp')
-rw-r--r-- | discord/member.hpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/discord/member.hpp b/discord/member.hpp index 0b7e0d6..9518259 100644 --- a/discord/member.hpp +++ b/discord/member.hpp @@ -6,13 +6,13 @@ #include <vector> struct GuildMember { - User User; // opt - std::string Nickname; // null - std::vector<Snowflake> Roles; // - std::string JoinedAt; // - std::string PremiumSince; // opt, null - bool IsDeafened; // - bool IsMuted; // + std::optional<User> User; // only reliable to access id. only opt in MESSAGE_* + std::string Nickname; // null + std::vector<Snowflake> Roles; + std::string JoinedAt; + std::optional<std::string> PremiumSince; // null + bool IsDeafened; + bool IsMuted; friend void from_json(const nlohmann::json &j, GuildMember &m); static GuildMember from_update_json(const nlohmann::json &j); |