bugfix to automod
This commit is contained in:
parent
566183692a
commit
0e8e74f604
@ -532,7 +532,7 @@ module.exports = class AutoModeration extends Observer {
|
|||||||
|
|
||||||
if (action) {
|
if (action) {
|
||||||
log += `\nSanctioned`;
|
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;
|
// msg.filtered.sactioned = true;
|
||||||
this.client.rateLimiter.queueDelete(msg.channel, msg);
|
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 });
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user