diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-21 17:42:32 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-21 17:42:32 -0500 |
commit | c42f42e4dcce2e1e9b886adca355ec2951205b6b (patch) | |
tree | 6e6ad793fbb2e3435d9892303d679bb07d46100a | |
parent | 43732e342ef2d8371a58cdfc5e51a9a20d6c1be6 (diff) | |
download | tanzanite-c42f42e4dcce2e1e9b886adca355ec2951205b6b.tar.gz tanzanite-c42f42e4dcce2e1e9b886adca355ec2951205b6b.tar.bz2 tanzanite-c42f42e4dcce2e1e9b886adca355ec2951205b6b.zip |
fix: automod freaking out
-rw-r--r-- | src/lib/common/AutoMod.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/common/AutoMod.ts b/src/lib/common/AutoMod.ts index 3b22935..d043ef0 100644 --- a/src/lib/common/AutoMod.ts +++ b/src/lib/common/AutoMod.ts @@ -127,7 +127,7 @@ export class AutoMod { * @returns */ private async checkScamMentions() { - const includes = this.message.content.toLocaleLowerCase().includes; + const includes = (c: string) => this.message.content.toLocaleLowerCase().includes(c); if (!includes('@everyone') && !includes('@here')) return; // It would be bad if we deleted a message that actually pinged @everyone or @here if ( |