add
从消息事件添加一个消息
event.sender named event.senderName at event.time says event.message
Since
2.1
fun add(senderId: Long, senderName: String, message: Message, time: Int = -1): ForwardMessageBuilder
添加一个消息. 若不指定 time, 将会使用 currentTime 自增 1 的时间.
Since
2.6
inline fun add(senderId: Long, senderName: String, time: Int = -1, builderAction: MessageChainBuilder.() -> Unit): ForwardMessageBuilder
inline fun add(sender: UserOrBot, time: Int = -1, builderAction: MessageChainBuilder.() -> Unit): ForwardMessageBuilder
构建并添加一个消息. 若不指定 time, 将会使用 currentTime 自增 1 的时间.
Since
2.6