mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-25 15:40:28 +08:00
Fix compilation
This commit is contained in:
parent
79136a2666
commit
6ebad54856
@ -84,13 +84,13 @@ public interface Command {
|
|||||||
@JvmStatic
|
@JvmStatic
|
||||||
public val Command.primaryName: String
|
public val Command.primaryName: String
|
||||||
get() = names[0]
|
get() = names[0]
|
||||||
|
|
||||||
@JvmSynthetic
|
|
||||||
public suspend inline fun Command.onCommand(sender: CommandSender, args: MessageChain): Unit =
|
|
||||||
sender.run { onCommand(args) }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmSynthetic
|
||||||
|
public suspend inline fun Command.onCommand(sender: CommandSender, args: MessageChain): Unit =
|
||||||
|
sender.onCommand(args)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* [Command] 的基础实现
|
* [Command] 的基础实现
|
||||||
*
|
*
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
object Versions {
|
object Versions {
|
||||||
const val core = "1.2.3"
|
const val core = "1.2.3"
|
||||||
const val console = "1.0-M4-dev-5"
|
const val console = "1.0-M4-dev-7"
|
||||||
const val consoleGraphical = "0.0.7"
|
const val consoleGraphical = "0.0.7"
|
||||||
const val consoleTerminal = "0.1.0"
|
const val consoleTerminal = "0.1.0"
|
||||||
const val consolePure = console
|
const val consolePure = console
|
||||||
|
Loading…
Reference in New Issue
Block a user