Commit 652ecc3f authored by Him188's avatar Him188

Add toString

parent 6372cea6
......@@ -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("<title size='$size', color='$color'>$text</title>")
this.builder.append("<title size='$size' color='$color'>$text</title>")
}
inline fun picture(coverUrl: String) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment