bugfix to automod

This commit is contained in:
Erik 2022-07-17 16:02:17 +03:00
parent 566183692a
commit 0e8e74f604
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -532,7 +532,7 @@ module.exports = class AutoModeration extends Observer {
if (action) {
log += `\nSanctioned`;
await this._moderate(action, guild, channel, member, wrapper.format('L_FILTER_ACTION', { domain: filterResult.match }), filterResult);
await this._moderate(action, wrapper, channel, member, wrapper.format('L_FILTER_ACTION', { domain: filterResult.match }), filterResult);
}
}
@ -593,7 +593,7 @@ module.exports = class AutoModeration extends Observer {
// msg.filtered.sactioned = true;
this.client.rateLimiter.queueDelete(msg.channel, msg);
await this._moderate(action, guild, channel, member, wrapper.format('I_FILTER_ACTION'), { filtered: msg.filtered });
await this._moderate(action, wrapper, channel, member, wrapper.format('I_FILTER_ACTION'), { filtered: msg.filtered });
}