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

XmlMessageBuilder

class XmlMessageBuilder

Types

ItemBuilder

class ItemBuilder

Constructors

<init>

XmlMessageBuilder(templateId: Int = 1, serviceId: Int = 1, action: String = "plugin", actionData: String = "", brief: String = "", flag: Int = 3, url: String = "", sourceName: String = "", sourceIconURL: String = "")

Properties

action

var action: String

actionData

一般为点击这条消息后跳转的链接

var actionData: String

brief

摘要, 在官方客户端内消息列表中显示

var brief: String

flag

var flag: Int

serviceId

var serviceId: Int

sourceIconURL

var sourceIconURL: String

sourceName

var sourceName: String

templateId

var templateId: Int

text

val text: String

url

var url: String

Functions

item

fun item(bg: Int = 0, layout: Int = 4, block: ItemBuilder.() -> Unit): Unit

source

fun source(name: String, iconURL: String = ""): Unit