-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
feat(GuildMemberManager): add 'search' method #4154
Conversation
Co-authored-by: Sugden <[email protected]>
This is basically just a duplicate of GuildMemberManager#fetch but over REST; is it necessary? |
Yes, for API coverage 😄 |
I don't think discord.js supports the List Guild Members endpoint though?, because that can also be done through #fetch which uses the gateway. IMO it's pointless to have two methods that do the same thing but in different ways, as that's likely to confuse users and leads to unnecessary bloat. |
Fair, we don't support all endpoints yet, however it doesn't mean we shouldn't support both... This would he especially beneficial for anyone that uses d.js in a more stateless manner (if they manage that) as well! As for user confusion... Documentation can clarify that .fetch can* include presences too (via intent and option, as well as fetching specific user IDs, while the rest endpoint lets you just search by start of nickname/username) That's just my opinion tho 👍 |
The referenced PR has finally been merged |
Ref: discord/discord-api-docs#1577
This PR will be marked as draft until the referenced PR above has been merged.Status
Semantic versioning classification: