diff --git a/src/structure/components/observers/Automoderation.js b/src/structure/components/observers/Automoderation.js index 19b8c52..e52dc4a 100644 --- a/src/structure/components/observers/Automoderation.js +++ b/src/structure/components/observers/Automoderation.js @@ -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 }); }