MemberCardChangeEvent

data class MemberCardChangeEvent @MiraiInternalApi constructor(    val origin: String,     val new: String,     val member: NormalMember) : AbstractEvent, GroupMemberEvent, Packet, GroupMemberInfoChangeEvent

成员群名片改动. 此事件广播前修改就已经完成.

由于服务器并不会告知名片变动, 此事件只能由 mirai 在发现变动时才广播. 不要依赖于这个事件.

Constructors

Link copied to clipboard
fun MemberCardChangeEvent(    origin: String,     new: String,     member: NormalMember)

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
val new: String

修改后

Link copied to clipboard
val origin: String

修改前

Link copied to clipboard
open override val user: Member