1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 19:17:38 +08:00

update todo

This commit is contained in:
Mrs4s 2021-11-08 18:20:45 +08:00
parent fc514b6f2d
commit 12e40ef1ea
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7
2 changed files with 2 additions and 1 deletions

View File

@ -149,6 +149,7 @@ func (s *GuildService) GetUserProfile(tinyId uint64) (*GuildUserProfile, error)
func (s *GuildService) GetGuildMembers(guildId uint64) (bots []*GuildMemberInfo, members []*GuildMemberInfo, admins []*GuildMemberInfo, err error) { func (s *GuildService) GetGuildMembers(guildId uint64) (bots []*GuildMemberInfo, members []*GuildMemberInfo, admins []*GuildMemberInfo, err error) {
seq := s.c.nextSeq() seq := s.c.nextSeq()
u1 := uint32(1) u1 := uint32(1)
// todo: 这个包实际上是 fetchMemberListWithRole , 可以按channel, role等规则获取成员列表, 还需要修改
payload := s.c.packOIDBPackageDynamically(3931, 1, binary.DynamicProtoMessage{ // todo: 可能还需要处理翻页的情况? payload := s.c.packOIDBPackageDynamically(3931, 1, binary.DynamicProtoMessage{ // todo: 可能还需要处理翻页的情况?
1: guildId, // guild id 1: guildId, // guild id
2: uint32(3), 2: uint32(3),

View File

@ -16,7 +16,7 @@ func (s *GuildService) pullRoamMsgByEventFlow(guildId, channelId, beginSeq, endS
EndSeq: &endSeq, EndSeq: &endSeq,
Version: []uint64{eventVersion}, Version: []uint64{eventVersion},
}, },
WithVersionFlag: proto.Uint32(2), WithVersionFlag: proto.Uint32(1),
DirectMessageFlag: proto.Uint32(0), DirectMessageFlag: proto.Uint32(0),
}) })
seq := s.c.nextSeq() seq := s.c.nextSeq()