ForceOffline

class ForceOffline @MiraiInternalApi constructor(val bot: Bot, val message: String?) : AuthReason

Bot 被挤下线

当 Bot 账号在其他客户端使用相同(或相似)协议登录时,Bot 会下线, 被挤下线后当前的登录会话将失效。

BotConfiguration.autoReconnectOnForceOfflinetrue 时, Bot 会尝试重新登录,并会以此原因进入认证流程

See also

Constructors

Link copied to clipboard
constructor(bot: Bot, message: String?)

Properties

Link copied to clipboard
open override val bot: Bot
Link copied to clipboard
open override val message: String?