mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-11 21:30:11 +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())
|
||||
}
|
||||
|
||||
inline fun Message.isPlain(): Boolean = this is PlainText
|
||||
|
||||
inline fun Message.isNotPlain(): Boolean = this !is PlainText
|
||||
|
||||
@JvmSynthetic
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
|
Loading…
Reference in New Issue
Block a user