This commit is contained in:
Erik 2022-04-25 15:29:10 +03:00
parent 3966da0303
commit bd8d5f1ca2
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -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