mirror of
https://github.com/danbulant/discord.js
synced 2026-07-08 04:31:05 +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,
|
count: data.options.count,
|
||||||
channel: guild.channels.get(data.options.channel_id),
|
channel: guild.channels.get(data.options.channel_id),
|
||||||
};
|
};
|
||||||
|
} else if (data.action_type === Actions.MESSAGE_BULK_DELETE) {
|
||||||
|
this.extra = {
|
||||||
|
count: data.options.count,
|
||||||
|
};
|
||||||
} else {
|
} else {
|
||||||
switch (data.options.type) {
|
switch (data.options.type) {
|
||||||
case 'member':
|
case 'member':
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue