Force

data class Force @MiraiInternalApi constructor(bot: Bot, title: String, message: String) : BotOfflineEvent, Packet, BotPassiveEvent

被挤下线. 默认不会自动重连. 可将 reconnect 改为 true 以重连.

Constructors

Force
Link copied to clipboard
fun Force(bot: Bot, title: String, message: String)

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
isCancelled
Link copied to clipboard
val isCancelled: Boolean
isIntercepted
Link copied to clipboard
abstract val isIntercepted: Boolean

事件是否已被拦截.

message
Link copied to clipboard
val message: String
reconnect
Link copied to clipboard
open override var reconnect: Boolean

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

title
Link copied to clipboard
val title: String