Skip to content

Commit

Permalink
Update helpCommand.js
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealToxicDev committed Apr 25, 2021
1 parent daf67c0 commit 0cdd826
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions commands/helpCommand.js
Expand Up @@ -52,6 +52,8 @@ module.exports.run = (client , message, args) => {

let config_commands = client.commands.filter(cmd => cmd.help.category == 'config')

let utils_commands = client.commands.filter(cmd => cmd.help.category == 'utils')

let admin_commands = client.commands.filter(cmd => cmd.help.category == 'moderation')

let owner_commands = client.commands.filter(cmd => cmd.help.category == 'owner')
Expand All @@ -63,6 +65,7 @@ module.exports.run = (client , message, args) => {
embed.addField('Information', info_commands.map(cmd => "``" + cmd.help.name + "``" ).join("** , **"), true)
embed.addField('Moderation', admin_commands.map(cmd => "``" + cmd.help.name + "``" ).join("** , **"), true)
embed.addField('Configuration', config_commands.map(cmd => "``" + cmd.help.name + "``" ).join("** , **"), true)
embed.addField('Utilitys', utils_commands.map(cmd => "``" + cmd.help.name + "``" ).join("** , **"), true)

if (client.config.owners.includes(message.author.id)) {
embed.addField('Owners Only', owner_commands.map(cmd => "``" + cmd.help.name + "``" ).join("** , **"), true)
Expand Down

0 comments on commit 0cdd826

Please sign in to comment.