This commit is contained in:
Him188 2020-07-01 23:36:28 +08:00
parent 680dc0f0cf
commit 0741d484c9

View File

@ -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()
} }
} }