From af81959eaa4e0fea4c8093c47d824c3bcba19c7d Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Thu, 1 Sep 2022 17:37:15 -0700 Subject: [PATCH] remove duplicate commands --- config/config.js | 2 +- util/RegisterSlashCommands.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.js b/config/config.js index fbde2fc..4948fe1 100644 --- a/config/config.js +++ b/config/config.js @@ -2,7 +2,7 @@ require('dotenv').config(); module.exports = { Dev: "PROD.", - Version: "12.4.2", + Version: "12.4.3", Admins: ["362791661274660874", "329371697570381824"], // Admins of the bot DefaultPrefix: "?", ServerID: "955668596745461830", diff --git a/util/RegisterSlashCommands.js b/util/RegisterSlashCommands.js index a3f2845..93b8ad1 100644 --- a/util/RegisterSlashCommands.js +++ b/util/RegisterSlashCommands.js @@ -19,7 +19,7 @@ module.exports = { for (const file of commandFiles) { const command = require(`../commands/${file}`); - commands.push(command); // Include global commands in guild + if (!commands.global) commands.push(command); // Include global commands in guild } const rest = new REST({ version: '10' }).setToken(client.config.Token);