diff --git a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/contact/MemberImpl.kt b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/contact/MemberImpl.kt index 18eba1b7d..d5ec636cc 100644 --- a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/contact/MemberImpl.kt +++ b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/contact/MemberImpl.kt @@ -237,7 +237,7 @@ internal class MemberImpl constructor( @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") group.members.delegate.removeIf { it.id == this@MemberImpl.id } - this.cancel(CancellationException("Kicked by bot")) + this@MemberImpl.cancel(CancellationException("Kicked by bot")) MemberLeaveEvent.Kick(this@MemberImpl, null).broadcast() } }