mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-13 14:50:43 +08:00
Fix #372
This commit is contained in:
parent
680dc0f0cf
commit
0741d484c9
@ -237,7 +237,7 @@ internal class MemberImpl constructor(
|
|||||||
|
|
||||||
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||||
group.members.delegate.removeIf { it.id == this@MemberImpl.id }
|
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()
|
MemberLeaveEvent.Kick(this@MemberImpl, null).broadcast()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user