rename and reorder a bunch of discord stuff

This commit is contained in:
ouwou
2020-09-09 23:17:26 -04:00
parent 5975e85d42
commit 51cf8fd2df
26 changed files with 809 additions and 736 deletions

21
discord/user.cpp Normal file
View File

@@ -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);
}