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) {