summaryrefslogtreecommitdiff
path: root/discord/user.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'discord/user.hpp')
-rw-r--r--discord/user.hpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/discord/user.hpp b/discord/user.hpp
new file mode 100644
index 0000000..1a6beaa
--- /dev/null
+++ b/discord/user.hpp
@@ -0,0 +1,28 @@
+#pragma once
+#include "snowflake.hpp"
+#include "json.hpp"
+#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
+
+ // undocumented (opt)
+ bool IsDesktop = false; //
+ bool IsMobile = false; //
+ bool IsNSFWAllowed = false; // null
+ std::string Phone; // null?
+
+ friend void from_json(const nlohmann::json &j, User &m);
+};