abstract class AbstractCancellableEvent : Event, CancellableEvent
可被取消的事件的实现
<init> |
可被取消的事件的实现 AbstractCancellableEvent() |
isCancelled |
事件是否已取消. open val isCancelled: Boolean |
cancel |
取消事件. open fun cancel(): Unit |
broadcast |
广播一个事件的唯一途径. suspend fun <E : Event> E.broadcast(): E |
BeforeImageUploadEvent |
图片上传前. 可以阻止上传 data class BeforeImageUploadEvent : BotEvent, BotActiveEvent, AbstractCancellableEvent |
ImageUploadEvent |
图片上传完成 sealed class ImageUploadEvent : BotEvent, BotActiveEvent, AbstractCancellableEvent |
MessageSendEvent |
主动发送消息 sealed class MessageSendEvent : BotEvent, BotActiveEvent, AbstractCancellableEvent |