Fixed build error
This commit is contained in:
+2
-1
@@ -4,4 +4,5 @@ node_modules
|
||||
.git
|
||||
docker-compose.yml
|
||||
Dockerfile
|
||||
.dockerignore
|
||||
.dockerignore
|
||||
dist
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user