diff options
Diffstat (limited to 'discord')
-rw-r--r-- | discord/user.cpp | 2 | ||||
-rw-r--r-- | discord/user.hpp | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/discord/user.cpp b/discord/user.cpp index a0bce0b..d1f6755 100644 --- a/discord/user.cpp +++ b/discord/user.cpp @@ -58,6 +58,8 @@ void from_json(const nlohmann::json &j, UserData &m) { JS_O("mobile", m.IsMobile); JS_ON("nsfw_allowed", m.IsNSFWAllowed); JS_ON("phone", m.Phone); + JS_ON("bio", m.Bio); + JS_ON("banner", m.BannerHash); } void to_json(nlohmann::json &j, const UserData &m) { diff --git a/discord/user.hpp b/discord/user.hpp index dc3223d..996ba98 100644 --- a/discord/user.hpp +++ b/discord/user.hpp @@ -52,6 +52,9 @@ struct UserData { std::optional<bool> IsMobile; std::optional<bool> IsNSFWAllowed; // null std::optional<std::string> Phone; // null? + // for now (unserialized) + std::optional<std::string> BannerHash; // null + std::optional<std::string> Bio; // null friend void from_json(const nlohmann::json &j, UserData &m); friend void to_json(nlohmann::json &j, const UserData &m); |