Skip to content

Commit

Permalink
修正 'contentToString` 注释不严谨处 (#2374)
Browse files Browse the repository at this point in the history
* 修正 'contentToString` 注释不严谨处

* link `At`
  • Loading branch information
MrXiaoM authored Dec 3, 2022
1 parent e65f4e6 commit 5a645b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mirai-core-api/src/commonMain/kotlin/message/data/Message.kt
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ public interface Message {
public override fun toString(): String

/**
* 转为最接近官方格式的字符串, 即 "内容". 如 `At(member) + "test"` 将转为 `"@群名片 test"`.
* 转为接近官方格式的字符串, 即 "内容". 如 `At(member) + "test"` 将转为 `"@QQ test"`.
*
* (对于 [At],应使用 [At.getDisplay] 将其转为最接近官方格式的字符串 `"@群名片"`)
*
* 在使用消息相关 DSL 和扩展时, 一些内容比较的实现均使用 [contentToString] 而不是 [toString].
*
Expand Down

0 comments on commit 5a645b4

Please sign in to comment.