github.com/LagrangeDev/LagrangeGo@v0.0.0-20240512064304-ad4a85e10cb4/client/packets/oidb/GroupMuteGlobal.go (about)

     1  package oidb
     2  
     3  import (
     4  	"math"
     5  
     6  	"github.com/LagrangeDev/LagrangeGo/client/packets/pb/service/oidb"
     7  )
     8  
     9  func BuildGroupMuteGlobalReq(groupUin uint32, isMute bool) (*OidbPacket, error) {
    10  	var s uint32 = 0
    11  	if isMute {
    12  		s = math.MaxUint32
    13  	}
    14  	body := &oidb.OidbSvcTrpcTcp0X89A_0{
    15  		GroupUin: groupUin,
    16  		State:    &oidb.OidbSvcTrpcTcp0X89A_0State{S: s},
    17  	}
    18  	return BuildOidbPacket(0x89A, 0, body, false, false)
    19  }
    20  
    21  func ParseGroupMuteGlobalResp(data []byte) error {
    22  	return CheckError(data)
    23  }