From 78e8203abde47d0e6dc3ecea38c608c94c001491 Mon Sep 17 00:00:00 2001 From: Karlatemp Date: Tue, 16 Feb 2021 23:13:27 +0800 Subject: [PATCH] Add default value of CompositeCommand.SubCommand.value for Java --- backend/mirai-console/src/command/CompositeCommand.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/mirai-console/src/command/CompositeCommand.kt b/backend/mirai-console/src/command/CompositeCommand.kt index ccb8d73fd..305cbd65b 100644 --- a/backend/mirai-console/src/command/CompositeCommand.kt +++ b/backend/mirai-console/src/command/CompositeCommand.kt @@ -121,7 +121,7 @@ public abstract class CompositeCommand( @Retention(RUNTIME) @Target(FUNCTION) protected annotation class SubCommand( - @ResolveContext(COMMAND_NAME) vararg val value: String, + @ResolveContext(COMMAND_NAME) vararg val value: String = [], ) /** 指令描述 */