From c42f42e4dcce2e1e9b886adca355ec2951205b6b Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Mon, 21 Feb 2022 17:42:32 -0500 Subject: fix: automod freaking out --- src/lib/common/AutoMod.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') 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 ( -- cgit