From 1224ac96dd6634b44d233298ba7cc90c07134093 Mon Sep 17 00:00:00 2001 From: nolan Date: Tue, 17 Aug 2021 00:17:03 -0700 Subject: [PATCH] idk why this irritates me so much --- 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 891354a..36b9cd4 100644 --- a/src/middleware/rest/SlashCommandManager.js +++ b/src/middleware/rest/SlashCommandManager.js @@ -21,7 +21,7 @@ class SlashCommandManager { } async guild(commands, { guilds = [] }) { - if(!guilds.length) guilds = this.client._options.discord.slashCommands.developerGuilds; + if(guilds.length === 0) guilds = this.client._options.discord.slashCommands.developerGuilds; const promises = []; for(const guild of guilds) {