Skip to content

Commit 9b51b47

Browse files
authored
Fix file category
1 parent 23c1909 commit 9b51b47

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/commands/slash/Bot/help.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)