github.com/LagrangeDev/LagrangeGo@v0.0.0-20240512064304-ad4a85e10cb4/client/packets/oidb/GroupSetAdmin.go (about) 1 package oidb 2 3 import ( 4 "github.com/LagrangeDev/LagrangeGo/client/packets/pb/service/oidb" 5 ) 6 7 func BuildGroupSetAdminReq(groupUin uint32, uid string, isAdmin bool) (*OidbPacket, error) { 8 body := &oidb.OidbSvcTrpcTcp0X1096_1{ 9 GroupUin: groupUin, 10 Uid: uid, 11 IsAdmin: isAdmin, 12 } 13 return BuildOidbPacket(0x1096, 1, body, false, false) 14 } 15 16 func ParseGroupSetAdminResp(data []byte) error { 17 return CheckError(data) 18 }