From df56751f91d680e6d5b9299b3b6251534b8260ac Mon Sep 17 00:00:00 2001 From: Dark <7890309+DarkView@users.noreply.github.com> Date: Wed, 28 Apr 2021 22:12:59 +0200 Subject: [PATCH] Oops --- backend/src/plugins/Automod/actions/setSlowmode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Automod/actions/setSlowmode.ts b/backend/src/plugins/Automod/actions/setSlowmode.ts index 587b7243..6efc7b4f 100644 --- a/backend/src/plugins/Automod/actions/setSlowmode.ts +++ b/backend/src/plugins/Automod/actions/setSlowmode.ts @@ -21,7 +21,7 @@ export const SetSlowmodeAction = automodAction({ const channel = pluginData.guild.channels.get(channelId); // 0 = Guild Text, 4 = Guild Category - Both dont allow slowmode if (!channel) continue; - if (channel.type === 0 || channel.type === 4) continue; + if (!(channel.type === 0 || channel.type === 4)) continue; let channelsToSlowmode: AnyGuildChannel[] = []; if (channel.type === 4) {