ShowImageFlag
object ShowImageFlag : AbstractMessageKey<ShowImageFlag> , MessageMetadata, ConstrainSingle
Content copied to clipboard
MessageChain 中包含秀图时的标记.
秀图已被 QQ 弃用, 仅作识别处理
MessageEvent event;
if (event.message.contains(ShowImageFlag.INSTANCE)) {
// event.message 包含的图片是作为 '秀图' 发送
}
Content copied to clipboard
发送 ShowImageFlag 不会有任何效果.
Since
2.2
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 连接.
Properties
key
Link copied to clipboard
用于判断是否为同一种元素的 MessageKey. 使用多态类型 MessageKey 最上层的 MessageKey.
safeCast
Link copied to clipboard
将一个 SingleMessage 强转为 M 类型. 在类型不符合时返回 null
SERIAL_NAME
Link copied to clipboard