ShortVideoUploadEvent

短视频上传完成.

此事件总是在 BeforeImageUploadEvent 之后广播. 若 BeforeImageUploadEvent 被取消, 此事件不会广播.

Since

2.16

See also

Inheritors

Types

Link copied to clipboard
class Failed @MiraiInternalApi constructor(val target: Contact, val thumbnailSource: ExternalResource, val videoSource: ExternalResource, val errno: Int, val message: String) : ShortVideoUploadEvent
Link copied to clipboard
class Succeed @MiraiInternalApi constructor(val target: Contact, val thumbnailSource: ExternalResource, val videoSource: ExternalResource, val video: ShortVideo) : ShortVideoUploadEvent

Functions

Link copied to clipboard
fun cancel()
Link copied to clipboard
abstract fun intercept()

拦截这个事件

Properties

Link copied to clipboard
open override val bot: Bot
Link copied to clipboard

限制一个事件实例不能并行广播. (适用于 object 广播的情况)

Link copied to clipboard
Link copied to clipboard
abstract val isIntercepted: Boolean

事件是否已被拦截.

Link copied to clipboard
abstract val target: Contact
Link copied to clipboard
Link copied to clipboard