-
Notifications
You must be signed in to change notification settings - Fork 28
Closed
Labels
Milestone
Description
Based on some feedback received by an user, the API for hiding commands from /help is not that great. Currently you need to define a normal command and then append the name of the command to the bot.hide_commands list. This works, but it would be nicer to hide the command directly from its declaration, like so:
@bot.command("hello", hidden=True)
def hello_command(chat, message, args):
passCurrent way:
@bot.command("hello")
def hello_command(chat, message, args):
pass
bot.hide_commands.append("hello")