Add toString

This commit is contained in:
Him188 2019-12-04 21:42:39 +08:00
parent 6372cea61d
commit 652ecc3f2b

View File

@ -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) {