3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-20 16:25:03 +00:00
This commit is contained in:
Dark 2021-04-28 22:12:59 +02:00
parent c4ce74e0d5
commit df56751f91
No known key found for this signature in database
GPG key ID: 384C4B4F5B1E25A8

View file

@ -21,7 +21,7 @@ export const SetSlowmodeAction = automodAction({
const channel = pluginData.guild.channels.get(channelId); const channel = pluginData.guild.channels.get(channelId);
// 0 = Guild Text, 4 = Guild Category - Both dont allow slowmode // 0 = Guild Text, 4 = Guild Category - Both dont allow slowmode
if (!channel) continue; if (!channel) continue;
if (channel.type === 0 || channel.type === 4) continue; if (!(channel.type === 0 || channel.type === 4)) continue;
let channelsToSlowmode: AnyGuildChannel[] = []; let channelsToSlowmode: AnyGuildChannel[] = [];
if (channel.type === 4) { if (channel.type === 4) {