When do Member roles cache?
I need to make sure when a member leaves a guild I can access all their role ids somehow.
Fetching all the members in the guild with 20k+ people doesn't seem like a good idea
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!members get cached when they interact with your bot
if they leave before they interacted, you only will receive partial data
Ah just a message from the member in the guild does the trick
Thanks