MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / ParseMemberDecreaseEvent

Function ParseMemberDecreaseEvent

client/event/group.go:247–256  ·  view source on GitHub ↗
(event *message.GroupChange)

Source from the content-addressed store, hash-verified

245}
246
247func ParseMemberDecreaseEvent(event *message.GroupChange) *GroupMemberDecrease {
248 return &GroupMemberDecrease{
249 GroupEvent: GroupEvent{
250 GroupUin: event.GroupUin,
251 UserUID: event.MemberUid,
252 },
253 OperatorUID: utils.B2S(event.Operator),
254 ExitType: event.DecreaseType,
255 }
256}
257
258func (g *GroupRecall) ResolveUin(f func(uid string, groupUin ...uint32) uint32) {
259 g.OperatorUin = f(g.OperatorUID, g.GroupUin)

Callers

nothing calls this directly

Calls 1

B2SFunction · 0.92

Tested by

no test coverage detected