5 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.A better approach would be to use fetch once in the code and then use the cache for other purposes
The cache will be automatically updated via the gateway so no need to call fetch again to update it
And the cache is much faster than fetching as well. Saving precious process time for responding faster
but no data has changed either way
It should work if you've implemented it the right way with the right intents
And in that code it should be
<Guild>.members.fetch()
Fetching everything just to fetch a member is not efficient
I have a fetch code that runs once in the ready event that readies the cache
And after that everywhere it uses the cache and it works without any issues
Even member counters when members are added and removedmy problem was with the intents. thank you ❤️