diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-09-09 23:17:26 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-09-09 23:17:26 -0400 |
commit | 51cf8fd2df3cf7a602d05540627a5ad8af6baa58 (patch) | |
tree | 1fac31d47c6e9a211c142f56aec154371544e3f5 /discord/user.cpp | |
parent | 5975e85d42a49652bb33de9f5213cb4dd5bf08e0 (diff) | |
download | abaddon-portaudio-51cf8fd2df3cf7a602d05540627a5ad8af6baa58.tar.gz abaddon-portaudio-51cf8fd2df3cf7a602d05540627a5ad8af6baa58.zip |
rename and reorder a bunch of discord stuff
Diffstat (limited to 'discord/user.cpp')
-rw-r--r-- | discord/user.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/discord/user.cpp b/discord/user.cpp new file mode 100644 index 0000000..a4c4424 --- /dev/null +++ b/discord/user.cpp @@ -0,0 +1,21 @@ +#include "user.hpp" + +void from_json(const nlohmann::json &j, User &m) { + JS_D("id", m.ID); + JS_D("username", m.Username); + JS_D("discriminator", m.Discriminator); + JS_N("avatar", m.Avatar); + JS_O("bot", m.IsBot); + JS_O("system", m.IsSystem); + JS_O("mfa_enabled", m.IsMFAEnabled); + JS_O("locale", m.Locale); + JS_O("verified", m.IsVerified); + JS_O("email", m.Email); + JS_O("flags", m.Flags); + JS_ON("premium_type", m.PremiumType); + JS_O("public_flags", m.PublicFlags); + JS_O("desktop", m.IsDesktop); + JS_O("mobile", m.IsMobile); + JS_ON("nsfw_allowed", m.IsNSFWAllowed); + JS_ON("phone", m.Phone); +} |