MsfOffline

@MiraiInternalApi(message = "This is very experimental and might be changed")
data class MsfOffline @MiraiInternalApi constructor(bot: Bot, cause: Throwable?) : BotOfflineEvent, Packet, BotPassiveEvent, BotOfflineEvent.CauseAware

被服务器断开

Constructors

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

Functions

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

拦截这个事件

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

Properties

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

事件是否已被拦截.

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

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