diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/PlainText.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/PlainText.kt index e76a34e2b..8ec46c8b2 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/PlainText.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/PlainText.kt @@ -30,8 +30,13 @@ inline class PlainText(val stringValue: String) : Message, MessageContent { companion object Key : Message.Key { @JvmStatic val Empty = PlainText("") + @JvmStatic val Null = PlainText("null") + + fun of(value: String): PlainText { + return PlainText(value) + } } }