From 2a696fe72d490a593dacf55d93eb7e25c80c95c4 Mon Sep 17 00:00:00 2001 From: rhearmas <34490428+qu-ota@users.noreply.github.com> Date: Fri, 20 Dec 2019 20:37:09 -0500 Subject: [PATCH] making sure it shows whether or not a command has aliases --- commands/System/help.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/System/help.js b/commands/System/help.js index 047bce1..1bb4dca 100644 --- a/commands/System/help.js +++ b/commands/System/help.js @@ -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"}); } } };