add guild role update, create, delete events

This commit is contained in:
ouwou
2020-12-14 01:40:22 -05:00
parent 1f19efc90e
commit 33ed25b2f6
4 changed files with 93 additions and 0 deletions

View File

@@ -179,3 +179,18 @@ void to_json(nlohmann::json &j, const ResumeMessage &m) {
j["d"]["session_id"] = m.SessionID;
j["d"]["seq"] = m.Sequence;
}
void from_json(const nlohmann::json &j, GuildRoleUpdateObject &m) {
JS_D("guild_id", m.GuildID);
JS_D("role", m.Role);
}
void from_json(const nlohmann::json &j, GuildRoleCreateObject &m) {
JS_D("guild_id", m.GuildID);
JS_D("role", m.Role);
}
void from_json(const nlohmann::json &j, GuildRoleDeleteObject &m) {
JS_D("guild_id", m.GuildID);
JS_D("role_id", m.RoleID);
}