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

BeforeImageUploadEvent

data class BeforeImageUploadEvent : BotEvent, BotActiveEvent, AbstractCancellableEvent

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

Constructors

<init>

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

BeforeImageUploadEvent(target: Contact, source: ExternalImage)

Properties

bot

val bot: Bot

source

val source: ExternalImage

target

val target: Contact

Extension Functions

broadcast

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

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