mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00: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:
parent
b5825c33b0
commit
59205a2152
1 changed files with 4 additions and 0 deletions
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Reference in a new issue