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
d.js toolkit
d.js toolkit10mo ago
- 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 OP
mallusrgreat
mallusrgreat10mo ago
do you have guildmembers intent?
Krayon
KrayonOP10mo ago
Trying with the intent now but I thought that was just for receiving events Yeah that worked ty
Want results from more Discord servers?
Add your server