github.com/LagrangeDev/LagrangeGo@v0.0.0-20240512064304-ad4a85e10cb4/client/event/self.go (about) 1 package event 2 3 import ( 4 "github.com/LagrangeDev/LagrangeGo/client/auth" 5 "github.com/LagrangeDev/LagrangeGo/client/packets/pb/message" 6 ) 7 8 func ParseSelfRenameEvent(event *message.SelfRenameMsg, sig *auth.SigInfo) *Rename { 9 sig.Nickname = event.Body.RenameData.NickName 10 return &Rename{ 11 Uin: event.Body.Uin, 12 Nickname: event.Body.RenameData.NickName, 13 } 14 }