aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-01 12:14:07 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-01 12:14:07 -0500
commitc24dfae07747c71e1c1806b12bf0f0bcd3dd60dd (patch)
treed27afd0148add2068a0ada0d22a55f67d78de6cb /src
parent4b3e6b0ec2b03705479fb3338bfc62d82e28ffc8 (diff)
downloadtanzanite-c24dfae07747c71e1c1806b12bf0f0bcd3dd60dd.tar.gz
tanzanite-c24dfae07747c71e1c1806b12bf0f0bcd3dd60dd.tar.bz2
tanzanite-c24dfae07747c71e1c1806b12bf0f0bcd3dd60dd.zip
ffs
Diffstat (limited to 'src')
-rw-r--r--src/lib/common/AutoMod.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/common/AutoMod.ts b/src/lib/common/AutoMod.ts
index d7da532..6e2881c 100644
--- a/src/lib/common/AutoMod.ts
+++ b/src/lib/common/AutoMod.ts
@@ -109,7 +109,7 @@ export class AutoMod {
*/
private async checkScamMentions() {
const includes = this.message.content.toLocaleLowerCase().includes;
- if (!includes('@everyone' || !includes('@here'))) return;
+ if (!includes('@everyone') && !includes('@here')) return;
// It would be bad if we deleted a message that actually pinged @everyone or @here
if (this.message.member?.permissionsIn(this.message.channelId).has('MENTION_EVERYONE') || this.message.mentions.everyone)
return;