chore: chore

This commit is contained in:
2024-09-26 21:58:17 +08:00
parent 0016fa578d
commit a51be7292f
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)
} }