Add PlainText.of

This commit is contained in:
Him188 2020-03-08 19:50:43 +08:00
parent 86389306ee
commit 3cda7aa805

View File

@ -30,8 +30,13 @@ inline class PlainText(val stringValue: String) : Message, MessageContent {
companion object Key : Message.Key<PlainText> {
@JvmStatic
val Empty = PlainText("")
@JvmStatic
val Null = PlainText("null")
fun of(value: String): PlainText {
return PlainText(value)
}
}
}