Fixed issuw with script

This commit is contained in:
2023-08-30 11:09:28 +02:00
parent 1977287abb
commit 4a3c2b3fa7

View File

@@ -18,12 +18,12 @@ else if (arg === '--prod') {
// 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(`./commands/${file}`); const command = require(`../commands/${file}`);
commands.push(command.data.toJSON()); commands.push(command.data.toJSON());
} }
for (const file of contentMenuCommands) { for (const file of contentMenuCommands) {
const command = require(`./commands-contextmenu/${file}`); const command = require(`../commands-contextmenu/${file}`);
commands.push(command.data.toJSON()); commands.push(command.data.toJSON());
} }
@@ -56,7 +56,7 @@ else if (arg === '--dev') {
// 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(`./commands-testing/${file}`); const command = require(`../commands-testing/${file}`);
commands.push(command.data.toJSON()); commands.push(command.data.toJSON());
} }