mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix: provide count on bulk deletion (#3682)
* GuildAuditLogsEntry should provide count as extra in case of MESSAGE_BULK_DELETE * inner class: GuildAuditLogsEntry in GuildAuditLogs.js
This commit is contained in:
@@ -323,6 +323,10 @@ class GuildAuditLogsEntry {
|
||||
count: data.options.count,
|
||||
channel: guild.channels.get(data.options.channel_id),
|
||||
};
|
||||
} else if (data.action_type === Actions.MESSAGE_BULK_DELETE) {
|
||||
this.extra = {
|
||||
count: data.options.count,
|
||||
};
|
||||
} else {
|
||||
switch (data.options.type) {
|
||||
case 'member':
|
||||
|
||||
Reference in New Issue
Block a user