From bd8d5f1ca2ebc0863586da77f68c207d1f50b0e7 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Mon, 25 Apr 2022 15:29:10 +0300 Subject: [PATCH] bingus --- src/middleware/rest/SlashCommandManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware/rest/SlashCommandManager.js b/src/middleware/rest/SlashCommandManager.js index 9d12c4d..3f0fb11 100644 --- a/src/middleware/rest/SlashCommandManager.js +++ b/src/middleware/rest/SlashCommandManager.js @@ -33,7 +33,7 @@ class SlashCommandManager { if (!guilds.length) guilds = this.client._options.discord.slashCommands.developerGuilds; const cmdHash = hash(commands); - for (const guild of guilds) { + for (const guild of [...guilds]) { // Skip guild update if hash is already up to date if (this.hash.guilds[guild] === cmdHash) guilds.splice(guilds.indexOf(guild), 1); // else update hash