Fetching role members
How would I go about doing this?
I have tried fetching all the members of a guild and then fetching all the roles in said guild (and vice versa). Then using role.members to check the members but it's always empty.
3 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPdo you have guildmembers intent?
Trying with the intent now but I thought that was just for receiving events
Yeah that worked ty