From 4a988de1613ff2e4edfd776bc557b146dc462842 Mon Sep 17 00:00:00 2001 From: Alexander Harding Date: Sun, 12 Jul 2026 17:06:27 -0400 Subject: [PATCH] Fixed build error --- .dockerignore | 3 ++- src/deploy-commands.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index b51396a..0f28a27 100644 --- a/.dockerignore +++ b/.dockerignore @@ -4,4 +4,5 @@ node_modules .git docker-compose.yml Dockerfile -.dockerignore \ No newline at end of file +.dockerignore +dist \ No newline at end of file diff --git a/src/deploy-commands.ts b/src/deploy-commands.ts index 6393436..31da6b0 100644 --- a/src/deploy-commands.ts +++ b/src/deploy-commands.ts @@ -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: string) => file.endsWith('.js')); // Grab the SlashCommandBuilder#toJSON() output of each command's data for deployment for (const file of commandFiles) { const filePath = path.join(commandsPath, file);