From 0e8e74f604883aa81f89a22d6a47a0ba8a589fde Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sun, 17 Jul 2022 16:02:17 +0300 Subject: [PATCH] bugfix to automod --- src/structure/components/observers/Automoderation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }); }