mirai-core / net.mamoe.mirai.event / BroadcastControllable

BroadcastControllable

interface BroadcastControllable : Event

可控制是否需要广播这个事件包

Properties

shouldBroadcast

open val shouldBroadcast: Boolean

Extension Functions

broadcast

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

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

Inheritors

FriendMessage

好友消息

class FriendMessage : ContactMessage, BroadcastControllable

GroupSettingChangeEvent

群设置改变. 此事件广播前修改就已经完成.

interface GroupSettingChangeEvent<T> : GroupEvent, BotPassiveEvent, BroadcastControllable

TempMessage

临时会话消息

class TempMessage : ContactMessage, BroadcastControllable