diff --git a/deploy-commands.js b/deploy-commands.js index ed0d7b5..802004a 100644 --- a/deploy-commands.js +++ b/deploy-commands.js @@ -32,7 +32,7 @@ const commandFiles = allFiles.filter(file => file.endsWith('.js')); // Grab the SlashCommandBuilder#toJSON() output of each command's data for deployment for (const file of commandFiles) { const command = require(`${file}`); - if ('data' in command && 'execute' in command) { + if ('enabled' in command && command.enabled && 'data' in command && 'execute' in command) { commands.push(command.data.toJSON()); } else {