From b9f70b1c66a0b6df7ac47c25a509d518444fafdf Mon Sep 17 00:00:00 2001 From: Him188 Date: Wed, 28 Oct 2020 13:57:28 +0800 Subject: [PATCH] Rename CommandReceiverParameter.PARAMETER_NAME to CommandReceiverParameter.NAME --- .../mirai/console/command/descriptor/CommandParameter.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/descriptor/CommandParameter.kt b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/descriptor/CommandParameter.kt index 5fdf0558f..77960e867 100644 --- a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/descriptor/CommandParameter.kt +++ b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/descriptor/CommandParameter.kt @@ -104,7 +104,7 @@ public class CommandReceiverParameter( override val isOptional: Boolean, override val type: KType, ) : CommandParameter, AbstractCommandParameter() { - override val name: String get() = PARAMETER_NAME + override val name: String get() = NAME init { val classifier = type.classifier @@ -117,7 +117,7 @@ public class CommandReceiverParameter( } public companion object { - public const val PARAMETER_NAME: String = "" + public const val NAME: String = "" } }