Sweeper interval
I want a persistent cache with no interval, but https://discordjs.guide/miscellaneous/cache-customization.html#sweeping-caches does not explicitly state how to achieve this. When I try to remove the "interval" property entirely, it leads to an error. I would like the "lifetime" property and nothing else
My question is whether setting it to "0" would remove the interval, or if an interval is required
1 Reply
- 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!