mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +08:00
group kick add block flag
(cherry picked from commit cbc17b40260ba0c2a12378ecf2884eb57b5a1a5b)
This commit is contained in:
parent
37b3821668
commit
8a0fd431a2
@ -959,15 +959,19 @@ func (c *QQClient) buildGroupMuteAllPacket(groupCode int64, mute bool) (uint16,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// OidbSvc.0x8a0_0
|
// OidbSvc.0x8a0_0
|
||||||
func (c *QQClient) buildGroupKickPacket(groupCode, memberUin int64, kickMsg string) (uint16, []byte) {
|
func (c *QQClient) buildGroupKickPacket(groupCode, memberUin int64, kickMsg string, block bool) (uint16, []byte) {
|
||||||
seq := c.nextSeq()
|
seq := c.nextSeq()
|
||||||
|
flagBlock := 0
|
||||||
|
if block {
|
||||||
|
flagBlock = 1
|
||||||
|
}
|
||||||
body := &oidb.D8A0ReqBody{
|
body := &oidb.D8A0ReqBody{
|
||||||
OptUint64GroupCode: groupCode,
|
OptUint64GroupCode: groupCode,
|
||||||
MsgKickList: []*oidb.D8A0KickMemberInfo{
|
MsgKickList: []*oidb.D8A0KickMemberInfo{
|
||||||
{
|
{
|
||||||
OptUint32Operate: 5,
|
OptUint32Operate: 5,
|
||||||
OptUint64MemberUin: memberUin,
|
OptUint64MemberUin: memberUin,
|
||||||
OptUint32Flag: 1,
|
OptUint32Flag: int32(flagBlock),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
KickMsg: []byte(kickMsg),
|
KickMsg: []byte(kickMsg),
|
||||||
|
@ -940,8 +940,8 @@ func (c *QQClient) quitGroup(groupCode int64) {
|
|||||||
_, _ = c.sendAndWait(c.buildQuitGroupPacket(groupCode))
|
_, _ = c.sendAndWait(c.buildQuitGroupPacket(groupCode))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *QQClient) kickGroupMember(groupCode, memberUin int64, msg string) {
|
func (c *QQClient) kickGroupMember(groupCode, memberUin int64, msg string, block bool) {
|
||||||
_, _ = c.sendAndWait(c.buildGroupKickPacket(groupCode, memberUin, msg))
|
_, _ = c.sendAndWait(c.buildGroupKickPacket(groupCode, memberUin, msg, block))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (g *GroupInfo) removeMember(uin int64) {
|
func (g *GroupInfo) removeMember(uin int64) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user