summaryrefslogtreecommitdiff
path: root/discord/user.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'discord/user.hpp')
-rw-r--r--discord/user.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/discord/user.hpp b/discord/user.hpp
index 2427b0b..cf6c2fa 100644
--- a/discord/user.hpp
+++ b/discord/user.hpp
@@ -19,10 +19,10 @@ struct User {
std::optional<int> PublicFlags;
// undocumented (opt)
- bool IsDesktop = false; //
- bool IsMobile = false; //
- bool IsNSFWAllowed = false; // null
- std::string Phone; // null?
+ std::optional<bool> IsDesktop;
+ std::optional<bool> IsMobile;
+ std::optional<bool> IsNSFWAllowed; // null
+ std::optional<std::string> Phone; // null?
friend void from_json(const nlohmann::json &j, User &m);
friend void to_json(nlohmann::json &j, const User &m);