diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/XML.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/XML.kt index a593e4391..6a7c6ffea 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/XML.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/XML.kt @@ -9,6 +9,7 @@ package net.mamoe.mirai.message */ inline class XMLMessage(override val stringValue: String) : Message, SingleOnly { override fun followedBy(tail: Message): Nothing = error("XMLMessage Message cannot be followed") + override fun toString(): String = stringValue } /** @@ -32,7 +33,7 @@ class ItemBuilder( } inline fun title(text: String, size: Int = 18, color: String = "#FFFFFF") { - this.builder.append("$text") + this.builder.append("$text") } inline fun picture(coverUrl: String) {