3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-23 09:35:02 +00:00

Update backend/src/plugins/Automod/actions/setSlowmode.ts

Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
metal 2021-09-01 16:19:46 +01:00 committed by GitHub
parent 50fab9718f
commit 4add2c4e10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,11 +28,13 @@ export const SetSlowmodeAction = automodAction({
if ( if (
!channel || !channel ||
!( !(
channel.type === ChannelTypeStrings.TEXT || [
ChannelTypeStrings.CATEGORY || ChannelTypeStrings.TEXT,
ChannelTypeStrings.PUBLIC_THREAD || ChannelTypeStrings.CATEGORY,
ChannelTypeStrings.NEWS_THREAD || ChannelTypeStrings.PUBLIC_THREAD,
ChannelTypeStrings.PRIVATE_THREAD ChannelTypeStrings.NEWS_THREAD,
ChannelTypeStrings.PRIVATE_THREAD,
].includes(channel.type)
) )
) { ) {
continue; continue;