From f1853dd3bb2d83d17f2eb29cc3e4522e0827bba8 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Sat, 28 Jan 2023 16:48:44 -0800 Subject: [PATCH] 13.2.7 possible duplicate command fix --- package.json | 2 +- util/RegisterSlashCommands.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 499b95c..1807233 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "quarksbot", - "version": "13.2.6", + "version": "13.2.7", "description": "Grand Theft Auto V Roleplay Bot", "main": "index.js", "nodemonConfig": { diff --git a/util/RegisterSlashCommands.js b/util/RegisterSlashCommands.js index c432bc8..8d8a1ca 100644 --- a/util/RegisterSlashCommands.js +++ b/util/RegisterSlashCommands.js @@ -10,7 +10,7 @@ const { REST } = require('@discordjs/rest'); module.exports = { // Register guild commands RegisterGuildCommands: async function(client, guild) { - const commands = []; + let commands = []; const commandFiles = fs.readdirSync(path.join(__dirname, "..", "commands")).filter(file => file.endsWith('.js')); // Place your client and guild ids here @@ -40,7 +40,7 @@ module.exports = { // Register global commands RegisterGlobalCommands: async function(client) { - const commands = []; + let commands = []; const commandFiles = fs.readdirSync(path.join(__dirname, "..", "commands")).filter(file => file.endsWith('.js')); // Place your client and guild ids here