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

AbstractCancellableEvent

abstract class AbstractCancellableEvent : Event, CancellableEvent

可被取消的事件的实现

Constructors

<init>

可被取消的事件的实现

AbstractCancellableEvent()

Properties

isCancelled

事件是否已取消.

open val isCancelled: Boolean

Functions

cancel

取消事件.

open fun cancel(): Unit

Extension Functions

broadcast

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

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

Inheritors

BeforeImageUploadEvent

图片上传前. 可以阻止上传

data class BeforeImageUploadEvent : BotEvent, BotActiveEvent, AbstractCancellableEvent

ImageUploadEvent

图片上传完成

sealed class ImageUploadEvent : BotEvent, BotActiveEvent, AbstractCancellableEvent

MessageSendEvent

主动发送消息

sealed class MessageSendEvent : BotEvent, BotActiveEvent, AbstractCancellableEvent