1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +08:00

feat: FindChannel method

This commit is contained in:
Mrs4s 2021-11-10 00:59:59 +08:00
parent 190c494409
commit cc17020dab
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7
2 changed files with 10 additions and 0 deletions

View File

@ -111,6 +111,15 @@ func (g *GuildInfo) FindMember(tinyId uint64) *GuildMemberInfo {
return nil return nil
} }
func (g *GuildInfo) FindChannel(channelId uint64) *ChannelInfo {
for _, c := range g.Channels {
if c.ChannelId == channelId {
return c
}
}
return nil
}
func (s *GuildService) GetUserProfile(tinyId uint64) (*GuildUserProfile, error) { func (s *GuildService) GetUserProfile(tinyId uint64) (*GuildUserProfile, error) {
seq := s.c.nextSeq() seq := s.c.nextSeq()
flags := binary.DynamicProtoMessage{} flags := binary.DynamicProtoMessage{}

View File

@ -45,6 +45,7 @@ type GuildImageElement struct {
Height int32 Height int32
DownloadIndex string DownloadIndex string
Md5 []byte Md5 []byte
Url string
} }
type ImageBizType uint32 type ImageBizType uint32