How can I pull which invite the user used to join the discord
code invite
6 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!Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
I tried to do it like this, but it's never pulling code right, do you know how I can do it?
avoid using cache when retrieving your invites
The
cache
option is for whether the fetched invites should replace the old cached invites, being true
by default
You're confusing it for the force
option which is not read when fetching multiple invites using this methodYep you're right. Wanted to use force, and messed with cache. Strangely it fixed the exact same problem though 🤔 (Not the exact same code btw)
(just in case someone got the same issue : checked this morning, force option failed ,
option cache: false works in my case coz'
debugging this : *oldInvites *entries are the SAME as *customVarInvites * after fetching.
Javascript not my thing so i didn't dig further, but from C/C++ PoV it's like both collection contains ref on cached data
So putting cache: false does not affect oldInvites stored values and the loop can make a valid comparison)