diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-02-04 23:41:53 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-02-04 23:41:53 -0500 |
commit | 64adcffe4272d109f296ff46fbc52eea5cf367bd (patch) | |
tree | 7df5a5ef1f0cd77541c684af5a794a1f536ff6ea /discord/user.hpp | |
parent | 0479bf52c2417cd983d808b6bce3f48f1551d6d9 (diff) | |
download | abaddon-portaudio-64adcffe4272d109f296ff46fbc52eea5cf367bd.tar.gz abaddon-portaudio-64adcffe4272d109f296ff46fbc52eea5cf367bd.zip |
view user profile (notes+connections+badges)
change some stuff with callbacks
Diffstat (limited to 'discord/user.hpp')
-rw-r--r-- | discord/user.hpp | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/discord/user.hpp b/discord/user.hpp index 4e6461e..2c216e8 100644 --- a/discord/user.hpp +++ b/discord/user.hpp @@ -4,6 +4,27 @@ #include <string> struct UserData { + enum { + DiscordEmployee = 1 << 0, + PartneredServerOwner = 1 << 1, + HypeSquadEvents = 1 << 2, + BugHunterLevel1 = 1 << 3, + HouseBravery = 1 << 6, + HouseBrilliance = 1 << 7, + HouseBalance = 1 << 8, + EarlySupporter = 1 << 9, + TeamUser = 1 << 10, // no idea what this is + System = 1 << 12, + BugHunterLevel2 = 1 << 14, + VerifiedBot = 1 << 16, + EarlyVerifiedBotDeveloper = 1 << 17, + + MaxFlag = EarlyVerifiedBotDeveloper, + }; + + static const char *GetFlagName(uint64_t flag); + static const char *GetFlagReadableName(uint64_t flag); + Snowflake ID; std::string Username; std::string Discriminator; @@ -14,9 +35,9 @@ struct UserData { std::optional<std::string> Locale; std::optional<bool> IsVerified; std::optional<std::string> Email; // null - std::optional<int> Flags; + std::optional<uint64_t> Flags; std::optional<int> PremiumType; // null - std::optional<int> PublicFlags; + std::optional<uint64_t> PublicFlags; // undocumented (opt) std::optional<bool> IsDesktop; |