diff --git a/src/structure/components/observers/Automoderation.js b/src/structure/components/observers/Automoderation.js index 91bc3ea..2376a89 100644 --- a/src/structure/components/observers/Automoderation.js +++ b/src/structure/components/observers/Automoderation.js @@ -480,8 +480,8 @@ module.exports = class AutoModeration extends Observer { // console.log(parts, validTld); if (!validTld) continue; const valid = await resolver.validateDomain(domain); - if (!valid && match.includes(`${domain}/`)) { - this.client.emit('linkFilterWarn', { guild: wrapper, message: wrapper.format('LINKFILTER_WARN', { domain, link: match }) }); + if (!valid) { + if (match.includes(`${domain}/`)) this.client.emit('linkFilterWarn', { guild: wrapper, message: wrapper.format('LINKFILTER_WARN', { domain, link: match }) }); continue; }