summaryrefslogtreecommitdiff
path: root/discord/user.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2021-04-05 02:18:30 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2021-04-05 02:18:30 -0400
commit08d604f8369327cbf2db6f81b733ed2b3f524d2e (patch)
treec6ea3e4746c59b2007daac8dc1e5d7b39e1f35f3 /discord/user.hpp
parentfa0e95f68c21e18b401dd955d4d5560db166300a (diff)
downloadabaddon-portaudio-08d604f8369327cbf2db6f81b733ed2b3f524d2e.tar.gz
abaddon-portaudio-08d604f8369327cbf2db6f81b733ed2b3f524d2e.zip
allow using animated emojis + emojis from other servers w/ nitro
also hide unavailable emojis and role-locked emojis. if you have the role it still wont show up yet though
Diffstat (limited to 'discord/user.hpp')
-rw-r--r--discord/user.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/discord/user.hpp b/discord/user.hpp
index 025139e..afb1149 100644
--- a/discord/user.hpp
+++ b/discord/user.hpp
@@ -3,6 +3,12 @@
#include "json.hpp"
#include <string>
+enum class PremiumType {
+ None = 0,
+ NitroClassic = 1,
+ Nitro = 2,
+};
+
struct UserData {
enum {
DiscordEmployee = 1 << 0,
@@ -36,7 +42,7 @@ struct UserData {
std::optional<bool> IsVerified;
std::optional<std::string> Email; // null
std::optional<uint64_t> Flags;
- std::optional<int> PremiumType; // null
+ std::optional<PremiumType> PremiumType; // null
std::optional<uint64_t> PublicFlags;
// undocumented (opt)