mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-25 15:40:28 +08:00
Fix build
This commit is contained in:
parent
ef83281e97
commit
a43fb27181
@ -38,10 +38,6 @@ interface Command {
|
|||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
internal fun Command.matchChild(args: List<Any>): SubCommandDescriptor {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 解析完成的指令实际参数列表. 参数顺序与 [Command.descriptor] 的 [CommandDescriptor.params] 相同.
|
* 解析完成的指令实际参数列表. 参数顺序与 [Command.descriptor] 的 [CommandDescriptor.params] 相同.
|
||||||
|
@ -73,7 +73,8 @@ fun Command.unregister(): Boolean = InternalCommandManager.modifyLock.withLock {
|
|||||||
suspend fun CommandSender.executeCommand(vararg args: Any): Boolean {
|
suspend fun CommandSender.executeCommand(vararg args: Any): Boolean {
|
||||||
val command = InternalCommandManager.matchCommand(args[0].toString()) ?: return false
|
val command = InternalCommandManager.matchCommand(args[0].toString()) ?: return false
|
||||||
|
|
||||||
return args.flattenCommandComponents().executeCommand(this)
|
TODO()
|
||||||
|
//return args.flattenCommandComponents().executeCommand(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -81,7 +82,8 @@ suspend fun CommandSender.executeCommand(vararg args: Any): Boolean {
|
|||||||
* @return 是否成功解析到指令. 返回 `false` 代表无任何指令匹配
|
* @return 是否成功解析到指令. 返回 `false` 代表无任何指令匹配
|
||||||
*/
|
*/
|
||||||
suspend fun MessageChain.executeAsCommand(sender: CommandSender): Boolean {
|
suspend fun MessageChain.executeAsCommand(sender: CommandSender): Boolean {
|
||||||
return this.flattenCommandComponents().executeCommand(sender)
|
TODO()
|
||||||
|
/// return this.flattenCommandComponents().executeCommand(sender)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -95,7 +97,9 @@ suspend inline fun CommandSender.execute(command: CommandDescriptor.SubCommandDe
|
|||||||
/**
|
/**
|
||||||
* 检查指令参数并直接执行一个指令.
|
* 检查指令参数并直接执行一个指令.
|
||||||
*/
|
*/
|
||||||
suspend inline fun Command.execute(sender: CommandSender, args: CommandArgs): Boolean = sender.execute(this, args)
|
suspend inline fun Command.execute(sender: CommandSender, args: CommandArgs): Boolean =
|
||||||
|
TODO()
|
||||||
|
//sender.execute(this, args)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 核心执行指令
|
* 核心执行指令
|
||||||
|
Loading…
Reference in New Issue
Block a user