forked from Galactic/galactic-bot
blergh
This commit is contained in:
parent
58e4980bc3
commit
606423d74e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user