minor help fix

This commit is contained in:
mmacierzanka committed 2021-08-02 19:15:42 +02:00
1 parent 146d886d04
commit 8ff79484c5
1 file changed
+4 -1
+4 -1
View File
@@ -28,7 +28,10 @@ export class HelpMessage extends Command {
helpMsg.setFooter(botName || "");
if (helpMsg != null) {
if (a && a[0]) {
const cmd: Command | null = cmdManager.get(a[0], "ALL");
const cmd: Command | null = cmdManager.get(
a[0].toString(),
"ALL"
);
if (cmd) {
helpMsg.setTitle(
`${cmd.name} ${cmd.visible ? "" : "[HIDDEN]"}`