Creates an instance of MenuCommand. this will add trigger of the app to the menu.
instances of AppCommand
此命令绑定的bot实例
帮助文字。当发送(菜单触发文字) 帮助
时返回的提示。
菜单文字。如果设置useCardMenu=true,此处应为json样式的字符串。
是否使用cardmessage作为菜单,默认为否。如果为是,则菜单文字内容必须为cardmessage。
Add alias for a certain app to this menu. 与初始化菜单时添加App不同,不会添加App的触发文字到菜单内,只添加作为参数输入的Alias。 Note that this will NOT add trigger to menu. menu.addCommand(app, alias1, alias2, ...)
instance of AppCommand
If you want to have something done before executing app command, please overwrite this. 默认情况下直接调用菜单的func功能。
菜单的主体功能。
{(Promise<ResultTypes | void>)}
Generated using TypeDoc
Class of menu command. You should initialize with params: code, trigger, help, apps(array of AppCommand).
extends BaseData