mirai-core / net.mamoe.mirai.event.events / MessageSendEvent

MessageSendEvent

sealed class MessageSendEvent : BotEvent, BotActiveEvent, AbstractCancellableEvent

主动发送消息

Types

FriendMessageSendEvent

data class FriendMessageSendEvent : MessageSendEvent, CancellableEvent

GroupMessageSendEvent

data class GroupMessageSendEvent : MessageSendEvent, CancellableEvent

Properties

bot

val bot: Bot

target

abstract val target: Contact

Extension Functions

broadcast

广播一个事件的唯一途径.

suspend fun <E : Event> E.broadcast(): E