@SinceMirai("0.33.0") sealed class FlashImage : MessageContent, HummerMessage
闪照
See Also
Key |
companion object Key : Key<FlashImage> |
image |
闪照的内容图片, 即一个普通图片. abstract val image: Image |
contentToString |
转为最接近官方格式的字符串. 如 open fun contentToString(): String |
toString |
得到包含 mirai 消息元素代码的, 易读的字符串. 如 open fun toString(): String |
typeName |
此 Key 指代的 Message 类型名. 一般为 val typeName: String |
invoke |
将普通图片转换为闪照. operator fun invoke(image: Image): FlashImage operator fun invoke(imageId: String): FlashImage |
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 |
FriendFlashImage |
data class FriendFlashImage : FlashImage |
GroupFlashImage |
data class GroupFlashImage : FlashImage |