aboutsummaryrefslogtreecommitdiff
path: root/src/lib/common
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-08-09 08:28:32 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-08-09 08:28:32 -0400
commitb838e15be780faa3a9acb450f814af38c7eb670a (patch)
tree8225600f5dfb1e8ec25688737aab09eeaa649e8a /src/lib/common
parent0aaa6166af6ff17f9b643997fccb44de1b57b1e5 (diff)
downloadtanzanite-b838e15be780faa3a9acb450f814af38c7eb670a.tar.gz
tanzanite-b838e15be780faa3a9acb450f814af38c7eb670a.tar.bz2
tanzanite-b838e15be780faa3a9acb450f814af38c7eb670a.zip
I am an idiot
Diffstat (limited to 'src/lib/common')
-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 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 =