Set title of embed to command.name if morehelp

This commit is contained in:
SileNce5k 2021-06-25 19:25:14 +02:00
parent 5ed26c9d7f
commit 1cddfbbde4
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -43,6 +43,7 @@ module.exports = {
commands = commands + `${prefix}${command.name} | ${command.description}\n` commands = commands + `${prefix}${command.name} | ${command.description}\n`
}else if(args[0] === command.name){ }else if(args[0] === command.name){
commands = commands + `${prefix}${command.name}\n` commands = commands + `${prefix}${command.name}\n`
embed.setTitle(command.name.charAt(0).toUpperCase() + command.name.slice(1))
if(command.moreHelp){ if(command.moreHelp){
command.moreHelp.forEach(element => { command.moreHelp.forEach(element => {
commands = commands + `${element}\n` commands = commands + `${element}\n`