mirror of
https://github.com/mamoe/mirai.git
synced 2025-04-24 20:43:33 +08:00
Update mirai-console/backend/mirai-console/src/internal/command/CommandReflector.kt
Co-authored-by: Him188 <Him188@mamoe.net>
This commit is contained in:
parent
790555595d
commit
575b7edad6
@ -82,7 +82,7 @@ internal object CompositeCommandSubCommandAnnotationResolver :
|
||||
override fun getDescription(ownerCommand: Command, function: KFunction<*>): String? =
|
||||
function.findAnnotation<CompositeCommand.Description>()?.value
|
||||
|
||||
override fun hasPropertyAnnotation(command: Command, kProperty: KProperty<*>): Boolean =
|
||||
override fun isCombinedCommand(command: Command, kProperty: KProperty<*>): Boolean =
|
||||
kProperty.hasAnnotation<CompositeCommand.CombinedCommand>()
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user