mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-07 16:40:43 +08:00
Face.toString
: use contentToString()
for better readability (#1382)
This commit is contained in:
parent
2f010b749b
commit
be3c873f4f
@ -33,7 +33,7 @@ public data class Face(public val id: Int) : // used in delegation
|
||||
|
||||
public val name: String get() = contentToString().let { it.substring(1, it.length - 1) }
|
||||
|
||||
override fun toString(): String = serializeToMiraiCode()
|
||||
override fun toString(): String = contentToString()
|
||||
override fun contentToString(): String = names.getOrElse(id) { "[表情]" }
|
||||
|
||||
@MiraiExperimentalApi
|
||||
|
Loading…
Reference in New Issue
Block a user