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