MessageMetadata
消息元数据, 即不含内容的元素.
这种类型的 Message 只表示一条消息的属性. 其子类如 MessageSource, QuoteReply, MessageOrigin 和 CustomMessageMetadata
所有子类的 contentToString 都应该返回空字符串.
要获取详细信息, 查看 MessageChain.
See also
Functions
contentEquals
Link copied to clipboard
open fun contentEquals(another: String, ignoreCase: Boolean = false): Boolean
Content copied to clipboard
判断内容是否与 another 相等.
open fun contentEquals(another: Message, ignoreCase: Boolean = false): Boolean
Content copied to clipboard
判断内容是否与 another 相等即 this
与 another 的 contentToString 相等.
open fun contentEquals(another: Message, ignoreCase: Boolean = false, strict: Boolean = false): Boolean
Content copied to clipboard
判断内容是否与 another 相等即 this
与 another 的 contentToString 相等. strict 为 true
时, 还会额外判断每个消息元素的类型, 顺序和属性. 如 Image 会判断 Image.imageId
contentToString
Link copied to clipboard
返回空字符串
followedBy
Link copied to clipboard
将 this
和 tail 连接.
Inheritors
CustomMessageMetadata
Link copied to clipboard
MessageSource
Link copied to clipboard
QuoteReply
Link copied to clipboard
ShowImageFlag
Link copied to clipboard