more descriptive reason for link filter matches

This commit is contained in:
Erik 2021-06-21 21:33:08 +03:00
parent f0b9ac3099
commit eb8183caea
No known key found for this signature in database
GPG Key ID: 7E862371D3409F16
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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