3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 16:55:03 +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 (
!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;