diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-19 19:18:59 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-19 19:18:59 -0500 |
commit | deb482a8db55874a536b6efec366343280214e48 (patch) | |
tree | abd28a02e7b34309871618d141b52326ba7ea6fb /discord/user.hpp | |
parent | 1463d8da9e1b4c49021e6fa75795e2cd054b6227 (diff) | |
download | abaddon-portaudio-deb482a8db55874a536b6efec366343280214e48.tar.gz abaddon-portaudio-deb482a8db55874a536b6efec366343280214e48.zip |
initial sqlite, store user
Diffstat (limited to 'discord/user.hpp')
-rw-r--r-- | discord/user.hpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/discord/user.hpp b/discord/user.hpp index e3d893d..a34bd81 100644 --- a/discord/user.hpp +++ b/discord/user.hpp @@ -4,19 +4,19 @@ #include <string> struct User { - Snowflake ID; // - std::string Username; // - std::string Discriminator; // - std::string Avatar; // null - bool IsBot = false; // opt - bool IsSystem = false; // opt - bool IsMFAEnabled = false; // opt - std::string Locale; // opt - bool IsVerified = false; // opt - std::string Email; // opt, null - int Flags = 0; // opt - int PremiumType = 0; // opt, null (docs wrong) - int PublicFlags = 0; // opt + Snowflake ID; + std::string Username; + std::string Discriminator; + std::string Avatar; // null + std::optional<bool> IsBot; + std::optional<bool> IsSystem; + std::optional<bool> IsMFAEnabled; + std::optional<std::string> Locale; + std::optional<bool> IsVerified; + std::optional<std::string> Email; // null + std::optional<int> Flags; + std::optional<int> PremiumType; // null + std::optional<int> PublicFlags; // undocumented (opt) bool IsDesktop = false; // |