mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-11 02:50:15 +08:00
Add implementation notes
This commit is contained in:
parent
3b540a102d
commit
e51c3ac4af
@ -140,6 +140,8 @@ public interface CommandManager {
|
|||||||
public suspend fun CommandSender.executeCommandDetailed(messages: MessageChain): CommandExecuteResult
|
public suspend fun CommandSender.executeCommandDetailed(messages: MessageChain): CommandExecuteResult
|
||||||
|
|
||||||
public companion object INSTANCE : CommandManager by CommandManagerImpl {
|
public companion object INSTANCE : CommandManager by CommandManagerImpl {
|
||||||
|
// TODO: 2020/8/20 https://youtrack.jetbrains.com/issue/KT-41191
|
||||||
|
|
||||||
override val CommandOwner.registeredCommands: List<Command> get() = CommandManagerImpl.run { registeredCommands }
|
override val CommandOwner.registeredCommands: List<Command> get() = CommandManagerImpl.run { registeredCommands }
|
||||||
override fun CommandOwner.unregisterAllCommands(): Unit = CommandManagerImpl.run { unregisterAllCommands() }
|
override fun CommandOwner.unregisterAllCommands(): Unit = CommandManagerImpl.run { unregisterAllCommands() }
|
||||||
override fun Command.register(override: Boolean): Boolean = CommandManagerImpl.run { register(override) }
|
override fun Command.register(override: Boolean): Boolean = CommandManagerImpl.run { register(override) }
|
||||||
|
Loading…
Reference in New Issue
Block a user