chore: chore
This commit is contained in:
1 file changed
+3
-3
@@ -47,11 +47,11 @@ class HelpCommand : BaseCommand() {
|
|||||||
}
|
}
|
||||||
val description = matchedCommand::class.findAnnotation<CommandDescription>()?.description ?: "暂无描述"
|
val description = matchedCommand::class.findAnnotation<CommandDescription>()?.description ?: "暂无描述"
|
||||||
val msg = MessageChain.Builder()
|
val msg = MessageChain.Builder()
|
||||||
.addText("命令名称: ${matchedCommand::class.simpleName}")
|
.addText("类名: ${matchedCommand::class.simpleName}")
|
||||||
.addNewLine()
|
.addNewLine()
|
||||||
.addText("指令别名: ${matchedCommand.commandNames.joinToString(",")}")
|
.addText("指令: ${matchedCommand.commandNames.joinToString(",")}")
|
||||||
.addNewLine()
|
.addNewLine()
|
||||||
.addText("指令描述: $description")
|
.addText("描述: $description")
|
||||||
.build()
|
.build()
|
||||||
message.reply(msg)
|
message.reply(msg)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user