sealed class MessageSendEvent : BotEvent, BotActiveEvent, AbstractCancellableEvent
主动发送消息
FriendMessageSendEvent |
data class FriendMessageSendEvent : MessageSendEvent, CancellableEvent |
GroupMessageSendEvent |
data class GroupMessageSendEvent : MessageSendEvent, CancellableEvent |
bot |
val bot: Bot |
target |
abstract val target: Contact |
broadcast |
广播一个事件的唯一途径. suspend fun <E : Event> E.broadcast(): E |