summaryrefslogtreecommitdiff
path: root/discord/member.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'discord/member.hpp')
-rw-r--r--discord/member.hpp14
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);