mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
client: fix DynamicMessage usage
This commit is contained in:
parent
bdb083558b
commit
727686e453
@ -175,7 +175,7 @@ func (g *GuildInfo) removeChannel(id uint64) {
|
||||
}
|
||||
|
||||
func (s *GuildService) GetUserProfile(tinyId uint64) (*GuildUserProfile, error) {
|
||||
flags := proto.DynamicMessage{}
|
||||
flags := make(proto.DynamicMessage, 101)
|
||||
for i := 3; i <= 29; i++ {
|
||||
flags[uint64(i)] = 1
|
||||
}
|
||||
@ -275,7 +275,7 @@ func (s *GuildService) FetchGuildMemberListWithRole(guildId, channelId uint64, s
|
||||
// FetchGuildMemberProfileInfo 获取单个频道成员资料
|
||||
func (s *GuildService) FetchGuildMemberProfileInfo(guildId, tinyId uint64) (*GuildUserProfile, error) {
|
||||
seq := s.c.nextSeq()
|
||||
flags := proto.DynamicMessage{}
|
||||
flags := make(proto.DynamicMessage, 101)
|
||||
for i := 3; i <= 29; i++ {
|
||||
flags[uint64(i)] = 1
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user