diff --git a/package.json b/package.json index f3774fa..cf46986 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayzr-bot", - "version": "9.7.0", + "version": "9.7.1", "description": "A General Purpose Discord Bot for DayZ Nitrado Servers.", "main": "index.js", "nodemonConfig": { diff --git a/util/RegisterSlashCommands.js b/util/RegisterSlashCommands.js index 4672aec..a4c0cc0 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}`); - if (!commands.global) commands.push(command); // don't include global commands + if (!command.global) commands.push(command); // don't include global commands } const rest = new REST({ version: '10' }).setToken(client.config.Token); @@ -43,7 +43,6 @@ module.exports = { const commands = []; const commandFiles = fs.readdirSync(path.join(__dirname, "..", "commands")).filter(file => file.endsWith('.js')); - // Place your client and guild ids here const clientId = client.application.id; for (const file of commandFiles) {