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

Method SetGroupMemberMute

client/operation.go:161–175  ·  view source on GitHub ↗

SetGroupMemberMute 禁言群成员

(groupUin, uin, duration uint32)

Source from the content-addressed store, hash-verified

159
160// SetGroupMemberMute 禁言群成员
161func (c *QQClient) SetGroupMemberMute(groupUin, uin, duration uint32) error {
162 uid := c.GetUID(uin, groupUin)
163 if uid == "" {
164 return errors.New("uid not found")
165 }
166 pkt, err := oidb2.BuildSetGroupMemberMuteReq(groupUin, duration, uid)
167 if err != nil {
168 return err
169 }
170 resp, err := c.sendOidbPacketAndWait(pkt)
171 if err != nil {
172 return err
173 }
174 return oidb2.ParseSetGroupMemberMuteResp(resp)
175}
176
177// SetGroupLeave 退出群聊
178func (c *QQClient) SetGroupLeave(groupUin uint32) error {

Callers

nothing calls this directly

Calls 2

GetUIDMethod · 0.95
sendOidbPacketAndWaitMethod · 0.95

Tested by

no test coverage detected