Cache Updating

I am trying to confirm if running await guild.members.fetch() will keep the member cache up to date for a particular guild. I seem to have different answers on this.
No description
No description
4 Replies
d.js toolkit
d.js toolkit4w 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!
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
Bot Mhann
Bot MhannOP4w ago
Ok got it. I do have the guild members intent. So what I have been doing it tracking if I have done await guild.members.fetch() for a particular guild and if not, I fetch. If I have done a fetch, then it seems the cache should stay up to date. Thank you!
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?