mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +08:00
feat: FindChannel method
This commit is contained in:
parent
190c494409
commit
cc17020dab
@ -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{}
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user