3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00

Bot now connects, lint fixes

This commit is contained in:
Dark 2021-06-02 19:35:44 +02:00
parent d0a1beb809
commit edcfd2333f
No known key found for this signature in database
GPG key ID: 384C4B4F5B1E25A8
16 changed files with 29 additions and 24 deletions

View file

@ -26,12 +26,13 @@ export const SetSlowmodeAction = automodAction({
continue;
}
let channelsToSlowmode: TextChannel[] = [];
const channelsToSlowmode: TextChannel[] = [];
if (channel.type === ChannelTypeStrings.CATEGORY) {
// Find all text channels within the category
for (const ch of pluginData.guild.channels.cache.values()) {
if (ch.parentID === channel.id && ch.type === ChannelTypeStrings.TEXT)
if (ch.parentID === channel.id && ch.type === ChannelTypeStrings.TEXT) {
channelsToSlowmode.push(ch as TextChannel);
}
}
} else {
channelsToSlowmode.push(channel as TextChannel);