Don't show disabled commands

This commit is contained in:
SileNce5k 2021-03-06 18:27:33 +01:00
parent dda61b1632
commit 7bc234fc6e
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -22,10 +22,10 @@ module.exports = {
if(args[0] == "admin"){
if (command.admin && command.enable == 1)
if (command.admin && !command.disabled)
commands = commands + `${prefix}${command.name} | ${command.description}\n`
}else
if(!command.admin && command.enable == 1)
if(!command.admin && !command.disabled)
commands = commands + `${prefix}${command.name} | ${command.description}\n`
}
embed.addFields(