mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-13 06:30:13 +08:00
Make PlainText.of
inline
This commit is contained in:
parent
3cda7aa805
commit
54a37afa59
@ -9,6 +9,7 @@
|
||||
|
||||
@file:JvmMultifileClass
|
||||
@file:JvmName("MessageUtils")
|
||||
@file:Suppress("NOTHING_TO_INLINE")
|
||||
|
||||
package net.mamoe.mirai.message.data
|
||||
|
||||
@ -34,7 +35,7 @@ inline class PlainText(val stringValue: String) : Message, MessageContent {
|
||||
@JvmStatic
|
||||
val Null = PlainText("null")
|
||||
|
||||
fun of(value: String): PlainText {
|
||||
inline fun of(value: String): PlainText {
|
||||
return PlainText(value)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user