MemberLeaveEvent

成员已经离开群的事件. 在事件广播前成员就已经从 Group.members 中删除

Types

Link copied to clipboard
data class Kick(val member: NormalMember, val operator: NormalMember?) : MemberLeaveEvent, Packet, GroupOperableEvent

成员被踢出群. 成员不可能是机器人自己.

Link copied to clipboard
data class Quit(val member: NormalMember) : MemberLeaveEvent, Packet

成员主动离开

Functions

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

拦截这个事件

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
abstract val member: Member
Link copied to clipboard
open override val user: Member

Inheritors

Link copied to clipboard
Link copied to clipboard