github.com/LagrangeDev/LagrangeGo@v0.0.0-20240512064304-ad4a85e10cb4/client/packets/oidb/GroupMuteMember.go (about) 1 package oidb 2 3 import ( 4 "github.com/LagrangeDev/LagrangeGo/client/packets/pb/service/oidb" 5 ) 6 7 func BuildGroupMuteMemberReq(groupUin, duration uint32, uid string) (*OidbPacket, error) { 8 body := &oidb.OidbSvcTrpcTcp0X1253_1{ 9 GroupUin: groupUin, 10 Type: 1, 11 Body: &oidb.OidbSvcTrpcTcp0X1253_1Body{ 12 TargetUid: uid, 13 Duration: duration, 14 }, 15 } 16 return BuildOidbPacket(0x1253, 1, body, false, false) 17 } 18 19 // ParseGroupMuteMemberResp 失败了会返回错误原因 20 func ParseGroupMuteMemberResp(data []byte) error { 21 return CheckTypedError[oidb.OidbSvcTrpcTcp0X1253_1Response](data) 22 }