making sure it shows whether or not a command has aliases

This commit is contained in:
rhearmas 2019-12-20 20:37:09 -05:00
parent 61a19c6d44
commit 2a696fe72d
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ exports.run = (client, message, args, level) => {
if (client.commands.has(command)) {
command = client.commands.get(command);
if (level < client.levelCache[command.conf.permLevel]) return;
message.channel.send(`= ${command.help.name} = \n${command.help.description}\nusage:: ${command.help.usage}\naliases:: ${command.conf.aliases.join(", ")}\n= ${command.help.name} =`, {code:"asciidoc"});
message.channel.send(`= ${command.help.name} = \n${command.help.description}\nusage:: ${command.help.usage}\n${command.conf.aliases.join(", ") !== "" ? `aliases:: ${command.conf.aliases.join(", ")}` : "aliases:: none"}`, {code:"asciidoc"});
}
}
};