From 4a5cedc59240605b9284d5110c1caf6cbc3e2969 Mon Sep 17 00:00:00 2001 From: Him188 Date: Tue, 12 Jan 2021 16:50:07 +0800 Subject: [PATCH] Update docs --- backend/mirai-console/src/command/Command.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/mirai-console/src/command/Command.kt b/backend/mirai-console/src/command/Command.kt index 675481731..d7262efcb 100644 --- a/backend/mirai-console/src/command/Command.kt +++ b/backend/mirai-console/src/command/Command.kt @@ -24,6 +24,9 @@ import net.mamoe.mirai.console.util.ConsoleExperimentalApi /** * 指令 * + * ### 权限 + * 每个指令都会被分配一个权限 [permission]. 默认没有人拥有这个权限. 请通过 [BuiltInCommands.PermissionCommand] 赋予权限. + * * @see CommandManager.registerCommand 注册这个指令 * * @see RawCommand 无参数解析, 接收原生参数的指令