Mirai-NET-Shelter / Mirai.Net

Mirai.Net是基于mirai-api-http实现的轻量级mirai社区sdk。
GNU Affero General Public License v3.0
186 stars 26 forks source link

[FEATURE] 建议在GroupManager类中提供指向AccountManager中对应方法的映射 #75

Open Natsukage opened 1 year ago

Natsukage commented 1 year ago

如题,目前例如获取群员列表等操作全都放在了AccountManager中,在实际使用过程中感觉很反直觉(这部分也没有在文档中列出,我还是翻源码才发现它是在AccountManager里的…) 希望将AccountManager.GetGroupMembersAsync()获取群成员列表,.GetGroupsAsync()获取群列表等方法在GroupManager中建立映射。 其实我是觉得应该直接把这些方法放在GroupManager里会更好一些的,尤其是目前获取群成员Member对象的方法位于GroupManager.GetMemberAsync(),而获取群成员Profile的方法位于AccountManager.GetMemberProfileAsync(),这部分感觉有些混乱了。