mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 18:40:15 +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.UserDefinedType<*>,
|
||||
-> {
|
||||
"<${this.name ?: this.type.classifierAsKClass().simpleName}>"
|
||||
val nameToRender = this.name ?: this.type.classifierAsKClass().simpleName
|
||||
if (isOptional) "[$nameToRender]" else "<$nameToRender>"
|
||||
}
|
||||
is AbstractCommandValueParameter.StringConstant -> {
|
||||
this.expectingValue
|
||||
|
Loading…
Reference in New Issue
Block a user