Commit f845b5cd authored by Him188's avatar Him188

Add `Message.isPlain`, `Message.isNotPlain`

parent edd823c7
...@@ -214,6 +214,9 @@ interface Message { ...@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment