Hide hidden commands within specific command help
This commit is contained in:
parent
f6b2365ccd
commit
cb4aa5a818
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ const printHelp = (c) => {
|
||||||
|
|
||||||
const printCmdHelp = (c) => {
|
const printCmdHelp = (c) => {
|
||||||
const cmd = c.args[0]
|
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') })
|
c.reply({ text: getMessage(c.lang, 'command.help.noCommand') })
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue