interface SingleMessage : Message
charAt |
open fun |
contains |
open operator fun |
eq |
open infix fun
将 contentToString 与 other 比较 open infix fun |
length |
open fun |
subSequence |
open fun |
asMessageChain |
直接将 this 委托为一个 MessageChain fun SingleMessage.asMessageChain(): MessageChain |
flatten |
扁平化 Message fun Message.flatten(): Sequence<SingleMessage> |
isContentEmpty |
判断消息内容是否为空. fun Message.isContentEmpty(): Boolean |
isContentNotEmpty |
fun Message.isContentNotEmpty(): Boolean |
isNotPlain |
fun Message.isNotPlain(): Boolean |
isNotPlain2 |
fun Message. |
isPlain |
fun Message.isPlain(): Boolean |
isPlain2 |
fun Message. |
repeat |
fun Message.repeat(count: Int): MessageChain |
repeat2 |
fun Message. |
sendTo |
suspend fun <C : Contact> Message.sendTo(contact: C): MessageReceipt<C> |
times |
operator fun Message.times(count: Int): MessageChain |
toForwardMessage |
转换为 ForwardMessage fun Message.toForwardMessage(sender: User, time: Int = currentTimeSeconds.toInt(), displayStrategy: DisplayStrategy = DisplayStrategy): ForwardMessage fun Message.toForwardMessage(senderId: Long, senderName: String, time: Int = currentTimeSeconds.toInt(), displayStrategy: DisplayStrategy = DisplayStrategy): ForwardMessage |
CustomMessage |
自定义消息 sealed class CustomMessage : SingleMessage |
MessageContent |
消息内容 interface MessageContent : SingleMessage |
MessageMetadata |
消息元数据, 即不含内容的元素. interface MessageMetadata : SingleMessage |