Commands for breadbot seem to be missing, modifying deploy-command to fix this

This commit is contained in:
Bradley Bickford 2023-12-31 09:42:39 -05:00
parent 2f51c18a69
commit 089bb99119

View File

@ -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 {