mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
handle GUILD_MEMBER_UPDATE
This commit is contained in:
1 parent
f29cfc6951
commit
c17842c16f
6 files changed
+42
No files matched your search
@@ -133,3 +133,11 @@ void to_json(nlohmann::json &j, const MessageEditObject &m) {
|
||||
if (m.Flags != -1)
|
||||
j["flags"] = m.Flags;
|
||||
}
|
||||
|
||||
void from_json(const nlohmann::json &j, GuildMemberUpdateMessage &m) {
|
||||
JS_D("guild_id", m.GuildID);
|
||||
JS_D("roles", m.Roles);
|
||||
JS_D("user", m.User);
|
||||
JS_ON("nick", m.Nick);
|
||||
JS_D("joined_at", m.JoinedAt);
|
||||
}
|
||||
Reference in new issue
Block a user