mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-12 14:00:12 +08:00
Add Message.isPlain
, Message.isNotPlain
This commit is contained in:
parent
edd823c7bc
commit
f845b5cded
@ -214,6 +214,9 @@ interface Message {
|
|||||||
this.followedByInternalForBinaryCompatibility(another.toString().toMessage())
|
this.followedByInternalForBinaryCompatibility(another.toString().toMessage())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline fun Message.isPlain(): Boolean = this is PlainText
|
||||||
|
|
||||||
|
inline fun Message.isNotPlain(): Boolean = this !is PlainText
|
||||||
|
|
||||||
@JvmSynthetic
|
@JvmSynthetic
|
||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
|
Loading…
Reference in New Issue
Block a user