mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-27 00:30:17 +08:00
Update AbstractCommandValueParameter.render style
This commit is contained in:
parent
1a5355db89
commit
8b6e2a1d9c
@ -174,7 +174,8 @@ internal class CommandReflector(
|
|||||||
is AbstractCommandValueParameter.Extended,
|
is AbstractCommandValueParameter.Extended,
|
||||||
is AbstractCommandValueParameter.UserDefinedType<*>,
|
is AbstractCommandValueParameter.UserDefinedType<*>,
|
||||||
-> {
|
-> {
|
||||||
"<${this.name ?: this.type.classifierAsKClass().simpleName}>"
|
val nameToRender = this.name ?: this.type.classifierAsKClass().simpleName
|
||||||
|
if (isOptional) "[$nameToRender]" else "<$nameToRender>"
|
||||||
}
|
}
|
||||||
is AbstractCommandValueParameter.StringConstant -> {
|
is AbstractCommandValueParameter.StringConstant -> {
|
||||||
this.expectingValue
|
this.expectingValue
|
||||||
|
Loading…
Reference in New Issue
Block a user