mirai-core / net.mamoe.mirai.message.data / VipFace

VipFace

@SinceMirai("0.39.5") data class VipFace : HummerMessage

VIP 表情.

不支持发送.

See Also

Types

Types

Companion

companion object Companion : Key<VipFace>

Kind

data class Kind

Properties

count

val count: Int

kind

使用 Companion 中常量.

val kind: Kind

Functions

contentToString

转为最接近官方格式的字符串. 如 At(member) + "test" 将转为 "@群名片 test".

fun contentToString(): String

toString

得到包含 mirai 消息元素代码的, 易读的字符串. 如 At(member) + "test" 将转为 "[mirai:at:qqId]test"

fun toString(): String

Companion Object Properties

AiXin

val AiXin: Kind

BianBian

val BianBian: Kind

ChaoPiao

val ChaoPiao: Kind

DianZan

val DianZan: Kind

HaHa

val HaHa: Kind

LiuLian

val LiuLian: Kind

LueLueLue

val LueLueLue: Kind

PingDiGuo

val PingDiGuo: Kind

QinQin

val QinQin: Kind

typeName

Key 指代的 Message 类型名. 一般为 class.simpleName, 如 "QuoteReply", "PlainText"

val typeName: String

values

val values: Array<Kind>

YaoWan

val YaoWan: Kind

ZhaDan

val ZhaDan: Kind

ZhuTou

val ZhuTou: Kind

Extension Functions

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.isNotPlain2(): Boolean

isPlain

fun Message.isPlain(): Boolean

isPlain2

fun Message.isPlain2(): Boolean

repeat

fun Message.repeat(count: Int): MessageChain

repeat2

fun Message.repeat2(count: Int): MessageChain

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