1
0
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:
hundun 2022-08-01 09:41:22 +08:00
parent 790555595d
commit 575b7edad6

View File

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