1
0
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:
hundun 2022-07-04 23:45:34 +08:00
parent 10364bcdc2
commit 2bafd186fb

View File

@ -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
}
}