FlashImage
data class FlashImage(image: Image) : MessageContent, HummerMessage, CodableMessage, ConstrainSingle
Content copied to clipboard
闪照. 闪照的内容取决于 image 代表的图片.
构造闪照
需要首先获得普通图片才能构造闪照. 详见 Image.
使用 FlashImage.from 将普通图片转换为闪照.
在 Kotlin 使用类构造器顶层函数
FlashImage(image)
.在 Kotlin 使用扩展 Image.flash.
获得闪照代表的原图片
访问属性 FlashImage.image
mirai 码支持
格式: [mirai:flash:Image.imageId]
See also
Constructors
FlashImage
Link copied to clipboard
Types
Key
Link copied to clipboard
Functions
appendMiraiCodeTo
Link copied to clipboard
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
转为最接近官方格式的字符串. 如 At(member) + "test"
将转为 "@群名片 test"
.
followedBy
Link copied to clipboard
将 this
和 tail 连接.
serializeToMiraiCode
Link copied to clipboard
转换为 mirai 码.