Compare commits
2 commits
ec98d2a5ec
...
b1bfcfa489
Author | SHA1 | Date | |
---|---|---|---|
b1bfcfa489 | |||
17d1cef6e1 |
5 changed files with 1 additions and 1 deletions
|
@ -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 => file.endsWith('_cmd.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);
|
||||||
|
|
Loading…
Reference in a new issue