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);