From cb4aa5a818d68c26866fcc65ba0d575768cf9107 Mon Sep 17 00:00:00 2001 From: 7cc5c4f330d47060 Date: Sun, 25 Aug 2024 21:33:32 -0400 Subject: [PATCH] Hide hidden commands within specific command help --- commands/help.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/help.js b/commands/help.js index 502dd4b..31c0547 100644 --- a/commands/help.js +++ b/commands/help.js @@ -66,7 +66,7 @@ const printHelp = (c) => { const printCmdHelp = (c) => { const cmd = c.args[0] - if (!cmds[cmd]) { + if (!cmds[cmd] || (cmds[cmd].hidden && c.type !== 'console')) { c.reply({ text: getMessage(c.lang, 'command.help.noCommand') }) return }