mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-06 09:00:14 +08:00
Add PlainText.of(CharSequence)
This commit is contained in:
parent
4cc8808372
commit
592d5fdef5
@ -38,6 +38,10 @@ inline class PlainText(val stringValue: String) : Message, MessageContent {
|
|||||||
inline fun of(value: String): PlainText {
|
inline fun of(value: String): PlainText {
|
||||||
return PlainText(value)
|
return PlainText(value)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline fun of(value: CharSequence): PlainText {
|
||||||
|
return PlainText(value)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user