mirror of
https://github.com/mamoe/mirai.git
synced 2025-05-06 06:12:34 +08:00
Update CommandReflector.kt
This commit is contained in:
parent
10364bcdc2
commit
2bafd186fb
@ -87,11 +87,6 @@ internal object CompositeCommandSubCommandAnnotationResolver :
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* - 不看Function上的Annotation
|
||||
* - 不从Function获取SubCommandNames
|
||||
* - 看Property上的Annotation
|
||||
*/
|
||||
@Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
|
||||
internal object GroupedCommandSubCommandAnnotationResolver :
|
||||
SubCommandAnnotationResolver<Any> {
|
||||
@ -453,4 +448,4 @@ internal class SubCommandReflector<T: Any>(
|
||||
|
||||
private fun KParameter.nameForCommandParameter(): String? =
|
||||
annotationResolver.getAnnotatedName(owner, this) ?: this.name
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user