From b838e15be780faa3a9acb450f814af38c7eb670a Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Tue, 9 Aug 2022 08:28:32 -0400 Subject: I am an idiot --- src/lib/common/AutoMod.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/common') diff --git a/src/lib/common/AutoMod.ts b/src/lib/common/AutoMod.ts index 093f8af..44c6dee 100644 --- a/src/lib/common/AutoMod.ts +++ b/src/lib/common/AutoMod.ts @@ -370,7 +370,7 @@ export class AutoMod { string ]; - if ((['ban', 'unmute'] as const).includes(action)) throw new TypeError(`Invalid automod button action: ${action}`); + if (!(['ban', 'unmute'] as const).includes(action)) throw new TypeError(`Invalid automod button action: ${action}`); const victim = await interaction.guild!.members.fetch(userId).catch(() => null); const moderator = -- cgit