mirai-core / net.mamoe.mirai.message.data / RichMessage / Templates

Templates

@SinceMirai("0.30.0") companion object Templates : Key<RichMessage>

Companion Object Properties

typeName

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

val typeName: String

Companion Object Functions

share

fun share(url: String, title: String? = null, content: String? = null, coverUrl: String? = null): ServiceMessage

shareDeprecated

fun shareDeprecated(url: String, title: String? = null, content: String? = null, coverUrl: String? = null): XmlMessage