aboutsummaryrefslogtreecommitdiff
path: root/src/lib/common/AutoMod.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/common/AutoMod.ts')
-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 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 (