Disband

@MiraiExperimentalApi(message = "BotLeaveEvent 的子类可能在将来改动. 使用 BotLeaveEvent 以保证兼容性.")
data class Disband @MiraiInternalApi constructor(val group: Group) : BotLeaveEvent, GroupOperableEvent

机器人因群主解散群而退出群. 操作人一定是群主

Since

2.8

Constructors

Link copied to clipboard
fun Disband(group: Group)

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 group: Group
Link copied to clipboard
open override val groupId: Long
Link copied to clipboard
val isCancelled: Boolean
Link copied to clipboard
abstract val isIntercepted: Boolean

事件是否已被拦截.

Link copied to clipboard
open override val operator: NormalMember

操作人, 为 null 时为 Bot 操作