Dropped

data class Dropped @MiraiInternalApi constructor(val bot: Bot, val cause: Throwable?) : BotOfflineEvent, Packet, BotPassiveEvent, BotOfflineEvent.CauseAware

因网络问题而掉线

Constructors

Link copied to clipboard
fun Dropped(bot: Bot, cause: Throwable?)

Functions

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

拦截这个事件

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
var _intercepted: Boolean = false
Link copied to clipboard
open override val bot: Bot
Link copied to clipboard
val broadCastLock: Mutex

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

Link copied to clipboard
open override val cause: Throwable?
Link copied to clipboard
val isCancelled: Boolean
Link copied to clipboard
abstract val isIntercepted: Boolean

事件是否已被拦截.

Link copied to clipboard
open override var reconnect: Boolean = true

true 时会尝试重连. 仅 BotOfflineEvent.Force 默认为 false, 其他默认为 true.