From 9288fbc43356bc149b2cdf5c4b92125cbc11ca9d Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sun, 21 Apr 2024 10:07:19 -0600 Subject: [PATCH] Im not even using async there --- index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 210cc2d..26244de 100644 --- a/index.js +++ b/index.js @@ -125,7 +125,7 @@ function updateDefcon(level) { function updateSlowmodes() { if (defcon >= 3) { // Disable slowmodes - slowmode_categories.forEach(async (category) => { + slowmode_categories.forEach((category) => { category.category.guild.channels.cache.forEach((chan) => { if (chan.parentId == category.category.id) { if (chan.rateLimitPerUser != category.defaultTime) chan.setRateLimitPerUser(category.defaultTime); @@ -133,12 +133,12 @@ function updateSlowmodes() { }) }); - slowmode_channels.forEach(async (channel) => { + slowmode_channels.forEach((channel) => { if (channel.channel.rateLimitPerUser != channel.defaultTime) return channel.channel.setRateLimitPerUser(channel.defaultTime); }) } else { // Enable slowmodes - slowmode_categories.forEach(async (category) => { + slowmode_categories.forEach((category) => { category.category.guild.channels.cache.forEach((chan) => { if (chan.parentId == category.category.id) { if (chan.rateLimitPerUser != category.time) chan.setRateLimitPerUser(category.time); @@ -146,7 +146,7 @@ function updateSlowmodes() { }) }); - slowmode_channels.forEach(async (channel) => { + slowmode_channels.forEach((channel) => { if (channel.channel.rateLimitPerUser != channel.time) return channel.channel.setRateLimitPerUser(channel.time); }) }