MemberJoinEvent

成员已经加入群的事件

Types

Link copied to clipboard
data class Active @MiraiInternalApi constructor(val member: NormalMember) : MemberJoinEvent

成员主动加入群

Link copied to clipboard
data class Invite @MiraiInternalApi constructor(val member: NormalMember, val invitor: NormalMember) : MemberJoinEvent

被邀请加入群

Link copied to clipboard
data class Retrieve @MiraiInternalApi constructor(val member: NormalMember) : MemberJoinEvent

原群主通过 https://huifu.qq.com/ 恢复原来群主身份并入群, 此时 memberMember.permission 肯定是 MemberPermission.OWNER

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

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard