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