forked from Galactic/galactic-bot
bingus
This commit is contained in:
parent
3966da0303
commit
bd8d5f1ca2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user