Fixed build error

This commit is contained in:
Alexander Harding
2026-07-12 17:06:27 -04:00
parent 366a2a13e3
commit 4a988de161
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -5,3 +5,4 @@ node_modules
docker-compose.yml docker-compose.yml
Dockerfile Dockerfile
.dockerignore .dockerignore
dist
+1 -1
View File
@@ -11,7 +11,7 @@ const commandFolders = fs.readdirSync(foldersPath);
for (const folder of commandFolders) { for (const folder of commandFolders) {
// Grab all the command files from the commands directory you created earlier // Grab all the command files from the commands directory you created earlier
const commandsPath = path.join(foldersPath, folder); 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 // Grab the SlashCommandBuilder#toJSON() output of each command's data for deployment
for (const file of commandFiles) { for (const file of commandFiles) {
const filePath = path.join(commandsPath, file); const filePath = path.join(commandsPath, file);