From 4a3c2b3fa79e01def7ef8bcff0d77b6274c52855 Mon Sep 17 00:00:00 2001 From: Taken Date: Wed, 30 Aug 2023 11:09:28 +0200 Subject: [PATCH] Fixed issuw with script --- scripts/deploy-commands.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/deploy-commands.js b/scripts/deploy-commands.js index f04055f..cbfbc30 100644 --- a/scripts/deploy-commands.js +++ b/scripts/deploy-commands.js @@ -18,12 +18,12 @@ else if (arg === '--prod') { // Grab the SlashCommandBuilder#toJSON() output of each command's data for deployment for (const file of commandFiles) { - const command = require(`./commands/${file}`); + const command = require(`../commands/${file}`); commands.push(command.data.toJSON()); } for (const file of contentMenuCommands) { - const command = require(`./commands-contextmenu/${file}`); + const command = require(`../commands-contextmenu/${file}`); 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 for (const file of commandFiles) { - const command = require(`./commands-testing/${file}`); + const command = require(`../commands-testing/${file}`); commands.push(command.data.toJSON()); }