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:
parent
50fab9718f
commit
4add2c4e10
1 changed files with 7 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue