From e51c3ac4afec3b16986641d7ee16a3c9ae6ba2d9 Mon Sep 17 00:00:00 2001 From: Him188 Date: Thu, 20 Aug 2020 20:34:33 +0800 Subject: [PATCH] Add implementation notes --- .../kotlin/net/mamoe/mirai/console/command/CommandManager.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/CommandManager.kt b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/CommandManager.kt index b907012ac..5d313721d 100644 --- a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/CommandManager.kt +++ b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/CommandManager.kt @@ -140,6 +140,8 @@ public interface CommandManager { public suspend fun CommandSender.executeCommandDetailed(messages: MessageChain): CommandExecuteResult public companion object INSTANCE : CommandManager by CommandManagerImpl { + // TODO: 2020/8/20 https://youtrack.jetbrains.com/issue/KT-41191 + override val CommandOwner.registeredCommands: List get() = CommandManagerImpl.run { registeredCommands } override fun CommandOwner.unregisterAllCommands(): Unit = CommandManagerImpl.run { unregisterAllCommands() } override fun Command.register(override: Boolean): Boolean = CommandManagerImpl.run { register(override) }