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:
parent
190c494409
commit
cc17020dab
@ -111,6 +111,15 @@ func (g *GuildInfo) FindMember(tinyId uint64) *GuildMemberInfo {
|
||||
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) {
|
||||
seq := s.c.nextSeq()
|
||||
flags := binary.DynamicProtoMessage{}
|
||||
|
@ -45,6 +45,7 @@ type GuildImageElement struct {
|
||||
Height int32
|
||||
DownloadIndex string
|
||||
Md5 []byte
|
||||
Url string
|
||||
}
|
||||
|
||||
type ImageBizType uint32
|
||||
|
Loading…
x
Reference in New Issue
Block a user