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

Face

data class Face : MessageContent

QQ 自带表情

Types

IdList

companion object IdList : Key<Face>

Constructors

<init>

Face(id: Int)

Properties

id

val id: Int

Functions

contentToString

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

fun contentToString(): String

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

toString

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

fun toString(): String

Companion Object Properties

aini

const val aini: Int

aiqing

const val aiqing: Int

aixin

const val aixin: Int

aoman

const val aoman: Int

baituo

const val baituo: Int

baiyan

const val baiyan: Int

bangbangtang

const val bangbangtang: Int

baobao

const val baobao: Int

baoji

const val baoji: Int

baojin

const val baojin: Int

baoquan

const val baoquan: Int

bianbian

const val bianbian: Int

bianpao

const val bianpao: Int

biaolei

const val biaolei: Int

bishi

const val bishi: Int

bizui

const val bizui: Int

bobo

const val bobo: Int

bu

const val bu: Int

bukaixin

const val bukaixin: Int

cahan

const val cahan: Int

caidao

const val caidao: Int

caiqiu

const val caiqiu: Int

cengyiceng

const val cengyiceng: Int

chajin

const val chajin: Int

chandou

const val chandou: Int

chaofeng

const val chaofeng: Int

chaopiao

const val chaopiao: Int

chexiang

const val chexiang: Int

cheyiche

const val cheyiche: Int

chi

const val chi: Int

ciya

const val ciya: Int

dabing

const val dabing: Int

daku

const val daku: Int

dan

const val dan: Int

dan_gao

const val dan_gao: Int

dao

const val dao: Int

dasan

const val dasan: Int

daxiao

const val daxiao: Int

denglong

const val denglong: Int

dengpao

const val dengpao: Int

deyi

const val deyi: Int

dianzan

const val dianzan: Int

diaoxie

const val diaoxie: Int

dingguagua

const val dingguagua: Int

duoyun

const val duoyun: Int

e

const val e: Int

facai

const val facai: Int

fadai

const val fadai: Int

fadou

const val fadou: Int

fan

const val fan: Int

fanu

const val fanu: Int

feiji

const val feiji: Int

feiwen

const val feiwen: Int

fendou

const val fendou: Int

fengche

const val fengche: Int

foxi

const val foxi: Int

ganbei

const val ganbei: Int

ganga

const val ganga: Int

gaotieyouchetou

const val gaotieyouchetou: Int

gaotiezuochetou

const val gaotiezuochetou: Int

gongxi

const val gongxi: Int

gouwu

const val gouwu: Int

gouyin

const val gouyin: Int

guzhang

const val guzhang: Int

haipa

const val haipa: Int

haixiu

const val haixiu: Int

hanxiao

const val hanxiao: Int

hao

const val hao: Int

haobang

const val haobang: Int

haqian

const val haqian: Int

he_nai

const val he_nai: Int

hecai

const val hecai: Int

heng

const val heng: Int

hexie

const val hexie: Int

hongbao

const val hongbao: Int

huachi

const val huachi: Int

huaixiao

const val huaixiao: Int

huishou

const val huishou: Int

huitou

const val huitou: Int

hulian

const val hulian: Int

ji_e

const val ji_e: Int

jidong

const val jidong: Int

jiewu

const val jiewu: Int

jingdai

const val jingdai: Int

jingkong

const val jingkong: Int

jingya

const val jingya: Int

juhua

const val juhua: Int

K_ge

const val K_ge: Int

kafei

const val kafei: Int

kaiche

const val kaiche: Int

kaiqiang

const val kaiqiang: Int

keai

const val keai: Int

kelian

const val kelian: Int

kentou

const val kentou: Int

ketou

const val ketou: Int

koubi

const val koubi: Int

ku

const val ku: Int

kuaikule

const val kuaikule: Int

kulou

const val kulou: Int

kun

const val kun: Int

lanqiu

const val lanqiu: Int

lenghan

const val lenghan: Int

lengmo

const val lengmo: Int

liaoyiliao

const val liaoyiliao: Int

liuhan

const val liuhan: Int

liulei

const val liulei: Int

liwu

const val liwu: Int

meigui

const val meigui: Int

nanguo

const val nanguo: Int

naohuo

const val naohuo: Int

naozhong

const val naozhong: Int

paishou

const val paishou: Int

paitou

const val paitou: Int

paizhuo

const val paizhuo: Int

penlian

const val penlian: Int

piaochong

const val piaochong: Int

piezui

const val piezui: Int

pijiu

const val pijiu: Int

pingpang

const val pingpang: Int

qiang

const val qiang: Int

qiaoda

const val qiaoda: Int

qiaoyiqioa

const val qiaoyiqioa: Int

qidao

const val qidao: Int

qingwa

const val qingwa: Int

qinqin

const val qinqin: Int

qiudale

const val qiudale: Int

quantou

const val quantou: Int

rengou

const val rengou: Int

ruo

const val ruo: Int

se

const val se: Int

shafa

const val shafa: Int

shandian

const val shandian: Int

shanlian

const val shanlian: Int

shengli

const val shengli: Int

shengrikuaile

const val shengrikuaile: Int

shiai

const val shiai: Int

shouqiang

const val shouqiang: Int

shuai

const val shuai: Int

shuai_qi

const val shuai_qi: Int

shuaitou

const val shuaitou: Int

shuangxi

const val shuangxi: Int

shui

const val shui: Int

songhua

const val songhua: Int

taiyang

const val taiyang: Int

tianyitian

const val tianyitian: Int

tiaopi

const val tiaopi: Int

tiaosheng

const val tiaosheng: Int

tiaotiao

const val tiaotiao: Int

toukan

const val toukan: Int

touxiao

const val touxiao: Int

touzhuangji

const val touzhuangji: Int

tu

const val tu: Int

tuolian

const val tuolian: Int

typeName

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

val typeName: String

unknown

const val unknown: Int

weiqu

const val weiqu: Int

weixiao

const val weixiao: Int

wobukan

const val wobukan: Int

woshou

const val woshou: Int

wuliao

const val wuliao: Int

xia

const val xia: Int

xiamian

const val xiamian: Int

xiangjiao

const val xiangjiao: Int

xianwen

const val xianwen: Int

xiaoyanger

const val xiaoyanger: Int

xiayu

const val xiayu: Int

xigua

const val xigua: Int

xinsui

const val xinsui: Int

xiongmao

const val xiongmao: Int

yangtuo

const val yangtuo: Int

yao

const val yao: Int

yinxian

const val yinxian: Int

yiwen

const val yiwen: Int

yongbao

const val yongbao: Int

youhengheng

const val youhengheng: Int

youjian

const val youjian: Int

youling

const val youling: Int

youtaiji

const val youtaiji: Int

yuanliang

const val yuanliang: Int

yueliang

const val yueliang: Int

yun

const val yun: Int

zaijian

const val zaijian: Int

zhadan

const val zhadan: Int

zhemo

const val zhemo: Int

zhijin

const val zhijin: Int

zhouma

const val zhouma: Int

zhuaizhatian

const val zhuaizhatian: Int

zhuakuang

const val zhuakuang: Int

zhuanquan

const val zhuanquan: Int

zhutou

const val zhutou: Int

zuanjie

const val zuanjie: Int

zuohengheng

const val zuohengheng: Int

zuotaiji

const val zuotaiji: Int

zuqiu

const val zuqiu: Int

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