From 17d1cef6e115bb69ad91d65bc15ded73ec9fa2bc Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 22 Aug 2023 23:55:06 -0400 Subject: [PATCH] misc(deploy): changed filter to check for `_cmd.js` instead of `.js` --- deploy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.js b/deploy.js index a8e6e73..06bf3ba 100644 --- a/deploy.js +++ b/deploy.js @@ -11,7 +11,7 @@ const commandFolders = fs.readdirSync(foldersPath); for (const folder of commandFolders) { // Grab all the command files from the commands directory you created earlier const commandsPath = path.join(foldersPath, folder); - const commandFiles = fs.readdirSync(commandsPath).filter(file => file.endsWith('.js')); + const commandFiles = fs.readdirSync(commandsPath).filter(file => file.endsWith('_cmd.js')); // Grab the SlashCommandBuilder#toJSON() output of each command's data for deployment for (const file of commandFiles) { const filePath = path.join(commandsPath, file);