add
直接添加一个 ForwardMessage.Node.
直接添加一个 MiraiForwardMessage.Node.
fun add(senderId: ID, senderName: String, time: Timestamp, message: Message): MiraiForwardMessageBuilder(source)
fun add(senderId: ID, senderName: String, time: Timestamp, messageContent: MessageContent): MiraiForwardMessageBuilder(source)
根据 MiraiForwardMessage.Node 中的最基本的属性添加内容。
Parameters
fun add(senderId: Long, senderName: String, time: Timestamp, message: Message): MiraiForwardMessageBuilder(source)
fun add(senderId: Long, senderName: String, time: Timestamp, messageContent: MessageContent): MiraiForwardMessageBuilder(source)
根据 MiraiForwardMessage.Node 中的最基本的属性添加内容。
Parameters
senderId
消息发送者的ID
senderName
发送者名称
fun add(senderId: ID, senderName: String, message: Message, secondTimestamp: Int = userCurrentTime()): MiraiForwardMessageBuilder(source)
fun add(senderId: ID, senderName: String, messageContent: MessageContent, secondTimestamp: Int = userCurrentTime()): MiraiForwardMessageBuilder(source)
根据 MiraiForwardMessage.Node 中的最基本的属性添加内容。
Parameters
fun add(senderId: Long, senderName: String, message: Message, secondTimestamp: Int = userCurrentTime()): MiraiForwardMessageBuilder(source)
fun add(senderId: Long, senderName: String, messageContent: MessageContent, secondTimestamp: Int = userCurrentTime()): MiraiForwardMessageBuilder(source)
根据 MiraiForwardMessage.Node 中的最基本的属性添加内容。
Parameters
senderId
消息发送者的ID
senderName
发送者名称
secondTimestamp
秒时间戳
fun add(messageEvent: ChatRoomMessageEvent, time: Timestamp = messageEvent.timestamp): MiraiForwardMessageBuilder(source)
追加一个 ChatRoomMessageEvent 作为转发消息的元素。
fun add(messageEvent: ContactMessageEvent, time: Timestamp = messageEvent.timestamp): MiraiForwardMessageBuilder(source)
追加一个 ContactMessageEvent 作为转发消息的元素。
fun add(messageEvent: ChatRoomMessageEvent, secondTimestamp: Int): MiraiForwardMessageBuilder(source)
追加一个 ChatRoomMessageEvent 作为转发消息的元素。
Parameters
secondTimestamp
消息发送的秒时间戳
fun add(messageEvent: ContactMessageEvent, secondTimestamp: Int): MiraiForwardMessageBuilder(source)
追加一个 ContactMessageEvent 作为转发消息的元素。
Parameters
secondTimestamp
消息发送的秒时间戳