Skip to content

Is it possible to use Intents with the REST API? #8668

Closed Answered by didinele
pranavbadami asked this question in Q&A
Discussion options

You must be logged in to vote

Hiya! That REST endpoint does not provide all members in a guild regardless of your allowed intents. I believe it's paginated if my memory serves me right...?

If you want to get all members in a guild (i.e. how discord.js does it via the GuildMemberManager#fetch method), it's advised you use the gateway - there's a REQUEST_GUILD_MEMBERS payload that you can send, which indeed does require the intent if you desire to get all members.

The gateway then responds with GUILD_MEMBER_CHUNK packets.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vladfrangu
Comment options

Answer selected by almostSouji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants