diff --git a/backend/src/plugins/Automod/actions/setSlowmode.ts b/backend/src/plugins/Automod/actions/setSlowmode.ts index de478a56..c9a628d9 100644 --- a/backend/src/plugins/Automod/actions/setSlowmode.ts +++ b/backend/src/plugins/Automod/actions/setSlowmode.ts @@ -28,11 +28,13 @@ export const SetSlowmodeAction = automodAction({ if ( !channel || !( - channel.type === ChannelTypeStrings.TEXT || - ChannelTypeStrings.CATEGORY || - ChannelTypeStrings.PUBLIC_THREAD || - ChannelTypeStrings.NEWS_THREAD || - ChannelTypeStrings.PRIVATE_THREAD + [ + ChannelTypeStrings.TEXT, + ChannelTypeStrings.CATEGORY, + ChannelTypeStrings.PUBLIC_THREAD, + ChannelTypeStrings.NEWS_THREAD, + ChannelTypeStrings.PRIVATE_THREAD, + ].includes(channel.type) ) ) { continue;