INSTANCE
CommandManager 实例. 转发所有调用到 MiraiConsoleImplementation.commandManager.
Functions
executeCommand
Link copied to clipboard
open suspend override fun executeCommand(caller: CommandSender, message: Message, checkPermission: Boolean): CommandExecuteResult
Content copied to clipboard
解析并执行一个指令.
open suspend override fun executeCommand(sender: CommandSender, command: Command, arguments: Message, checkPermission: Boolean): CommandExecuteResult
Content copied to clipboard
执行一个确切的指令
findDuplicate
Link copied to clipboard
findDuplicateCommand
Link copied to clipboard
查找并返回重名的指令. 返回重名指令.
getRegisteredCommands
Link copied to clipboard
open override fun getRegisteredCommands(owner: CommandOwner): List<Command>
Content copied to clipboard
获取已经注册了的属于这个 CommandOwner 的指令列表.
isCommandRegistered
Link copied to clipboard
matchCommand
Link copied to clipboard
registerCommand
Link copied to clipboard
open override fun registerCommand(command: Command, override: Boolean): Boolean
Content copied to clipboard
注册一个指令.
unregister
Link copied to clipboard
unregisterAll
Link copied to clipboard
unregisterAllCommands
Link copied to clipboard
取消注册所有属于 owner 的指令
unregisterCommand
Link copied to clipboard
取消注册这个指令.
Properties
allRegisteredCommands
Link copied to clipboard
commandPrefix
Link copied to clipboard
isRegistered
Link copied to clipboard
registeredCommands
Link copied to clipboard