SetGroupMemberMute 禁言群成员
(groupUin, uin, duration uint32)
| 159 | |
| 160 | // SetGroupMemberMute 禁言群成员 |
| 161 | func (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 退出群聊 |
| 178 | func (c *QQClient) SetGroupLeave(groupUin uint32) error { |
nothing calls this directly
no test coverage detected