Commit 3cda7aa8 authored by Him188's avatar Him188

Add `PlainText.of`

parent 86389306
......@@ -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)
}
}
}
......
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