Commit ecfcc183 authored by Him188's avatar Him188

Fix `no such member` when kick

parent 751d6535
......@@ -131,7 +131,7 @@ internal class OnlinePush {
val groupUin = content.fromUin
bot.getGroupByUin(groupUin).let { group ->
val member = group[target] as MemberImpl
val member = group.getOrNull(target) as? MemberImpl ?: return NoPacket
this.discardExact(1)
return MemberLeaveEvent.Kick(member.also {
group.members.delegate.remove(member)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment