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