diff --git a/backend/mirai-console/src/command/descriptor/CommandParameter.kt b/backend/mirai-console/src/command/descriptor/CommandParameter.kt index e6d30d783..225615447 100644 --- a/backend/mirai-console/src/command/descriptor/CommandParameter.kt +++ b/backend/mirai-console/src/command/descriptor/CommandParameter.kt @@ -186,7 +186,7 @@ public sealed class AbstractCommandValueParameter : CommandValueParameter, override fun toString(): String = "<$expectingValue>" override fun acceptingImpl(expectingType: KType, argument: CommandValueArgument, commandArgumentContext: CommandArgumentContext?): ArgumentAcceptance { - return if (argument.type.isSubtypeOf(expectingType) && argument.value.content == expectingValue) { + return if (argument.value.content == expectingValue) { ArgumentAcceptance.Direct } else ArgumentAcceptance.Impossible }