Closed KevinAnass closed 3 years ago
Please update to v1.2.2 once it is available on Nuget. Once you have updated you can access all of the users on a particular group using the following code inside of a command:
var users = await this.Client.GetGroupUsers(Group.Id);
There is an example of this available here. If this does not work for you, please reopen the issue.
There was an issue with the existing API where it was using an old version of the packet logic. This has been remedied.
thank you so much
No problem!
I am sorry but is throwing this exception Error while deserializing packet: 400 { "code": 400 }
Code 400 normally means the packet was malformed, which indicates that the group ID that you're requesting isn't valid. Could you send me an example of the code you're using to call the GetGroupUsers function?
var groupusers = (await client.GetGroupUsers(3687058));
Is 3687058 a valid group? I am getting a 403 error when I attempt to request this group's users as I'm not in it.
yes I got this group from the Groups function you can try any group you are in
Ok, I believe I have figured out the issue. There are too many users in the request. The request for user profiles will probably need to be broken up into separate calls. I will work on implementing this.
thank you so much I am waiting for you
It should work now. Please update to v1.2.3 of the nuget package.
A thing to note; if you're requesting a group with more than 100 users, that call will take a while. To avoid a service timeout, throttle and potential account bar, I had to put a 1 second time out after every 4 requests of 25 users. Please open this issue again, if it is still not working.
thank you so much it's working without exception
Awesome! Feel free to open another issue if you run into anything else, or if you want to suggest features!
thank you
How I can Get All The users inside the group