Commands for breadbot seem to be missing, modifying deploy-command to fix this
This commit is contained in:
parent
2f51c18a69
commit
089bb99119
@ -32,7 +32,7 @@ const commandFiles = allFiles.filter(file => file.endsWith('.js'));
|
|||||||
// Grab the SlashCommandBuilder#toJSON() output of each command's data for deployment
|
// Grab the SlashCommandBuilder#toJSON() output of each command's data for deployment
|
||||||
for (const file of commandFiles) {
|
for (const file of commandFiles) {
|
||||||
const command = require(`${file}`);
|
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());
|
commands.push(command.data.toJSON());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user