From eb8183caeac0e7caec9d975a998eb6bceeefc509 Mon Sep 17 00:00:00 2001 From: Navy Date: Mon, 21 Jun 2021 21:33:08 +0300 Subject: [PATCH] more descriptive reason for link filter matches --- structure/client/components/observers/Automoderation.js | 2 +- structure/language/languages/en_us/en_us_observers.lang | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/structure/client/components/observers/Automoderation.js b/structure/client/components/observers/Automoderation.js index 298424b..30a2ccf 100644 --- a/structure/client/components/observers/Automoderation.js +++ b/structure/client/components/observers/Automoderation.js @@ -395,7 +395,7 @@ module.exports = class AutoModeration extends Observer { this.client.rateLimiter.queueDelete(msg.channel, msg); //msg.delete(); - this._moderate(action, guild, channel, member, msg.format('L_FILTER_ACTION'), filterResult, message); + this._moderate(action, guild, channel, member, msg.format('L_FILTER_ACTION', { domain: filterResult.match }), filterResult, message); } else this.client.rateLimiter.queueDelete(msg.channel, msg); //msg.delete(); diff --git a/structure/language/languages/en_us/en_us_observers.lang b/structure/language/languages/en_us/en_us_observers.lang index 6233567..6f85dd9 100644 --- a/structure/language/languages/en_us/en_us_observers.lang +++ b/structure/language/languages/en_us/en_us_observers.lang @@ -61,7 +61,7 @@ Invite filter violation. <@{user}> your message contained a unauthorised URL. [L_FILTER_ACTION] -Link filter violation. +Link filter violation, matched domain: ||{domain}||. // Logging