Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Add GetUsersAsync to SocketGuild #1549

Merged
merged 3 commits into from
May 25, 2020

Conversation

SubZero0
Copy link
Member

Summary

This will add the possibility to get the guild members throught REST, following the same standard as socket channels for messages.

There's a few reasons I believe this should be added:

  • There's no way to get all members throught REST without having a RestGuild.
  • The REST ratelimit is a lot higher than Gateway (better for small guilds with just a few thousands members or less).
  • Doesn't keep users cached (vs downloading then purging).

Changes

  • Add GetUsersAsync to SocketGuild
  • Add remark to DownloadUsersAsync for a better description of how it does

@foxbot
Copy link
Member

foxbot commented May 25, 2020

Looks good to me, prior behavior would have been to run this through the SocketRestClient

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants