File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -36,19 +36,19 @@ module.exports = {
3636 const commandInt = interaction . options . getString ( "command" ) ;
3737 if ( ! commandInt ) {
3838
39- // Get the slash commands of a Bot category
39+ // Get the commands of a Bot category
4040 const botCommandsList = [ ] ;
41- readdirSync ( `./slashCommands /Bot` ) . forEach ( ( file ) => {
42- const filen = require ( `../../slashCommands /Bot/${ file } ` ) ;
43- const name = `\`${ filen . name } \``
41+ readdirSync ( `${ client . cwd } /src/commands/slash /Bot` ) . forEach ( ( file ) => {
42+ const filen = require ( `${ client . cwd } /src/commands/slash /Bot/${ file } ` ) ;
43+ const name = `\`${ filen . name } \`` ;
4444 botCommandsList . push ( name ) ;
4545 } ) ;
4646
47- // Get the slash commands of a Utility category
47+ // Get the commands of a Utility category
4848 const utilityCommandsList = [ ] ;
49- readdirSync ( `./slashCommands /Utility` ) . forEach ( ( file ) => {
50- const filen = require ( `../../slashCommands /Utility/${ file } ` ) ;
51- const name = `\`${ filen . name } \``
49+ readdirSync ( `${ client . cwd } /src/commands/slash /Utility` ) . forEach ( ( file ) => {
50+ const filen = require ( `${ client . cwd } /src/commands/slash /Utility/${ file } ` ) ;
51+ const name = `\`${ filen . name } \`` ;
5252 utilityCommandsList . push ( name ) ;
5353 } ) ;
5454
You can’t perform that action at this time.
0 commit comments