handle MESSAGE_DELETE_BULK

This commit is contained in:
ouwou
2020-10-01 19:13:42 -04:00
parent 9cb0eefa56
commit dddcef117c
4 changed files with 30 additions and 1 deletions

View File

@@ -18,6 +18,12 @@ void from_json(const nlohmann::json &j, MessageDeleteData &m) {
JS_O("guild_id", m.GuildID);
}
void from_json(const nlohmann::json &j, MessageDeleteBulkData &m) {
JS_D("ids", m.IDs);
JS_D("channel_id", m.ChannelID);
JS_O("guild_id", m.GuildID);
}
void from_json(const nlohmann::json &j, GuildMemberListUpdateMessage::GroupItem &m) {
m.Type = "group";
JS_D("id", m.ID);