mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-05 07:30:09 +08:00
Add PlainText.of
This commit is contained in:
parent
86389306ee
commit
3cda7aa805
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user