misc(deploy): changed filter to check for _cmd.js
instead of .js
This commit is contained in:
parent
ec98d2a5ec
commit
17d1cef6e1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue