Question about makeCache and sweepers
Hi! I'm running a ticket bot which has transcripts, what would be the best settings for message cache? I would like to cut down the memory usage a bit and that's all I have left available.
12 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!Do you rly need messages cached?
Would be easier to just store the messages from a ticket in a db when they are sent
storing in db could be a bit messy to handle
I disagree
What about when the bot was offline
That's the only caveat
You're still fetching messages since it won't be cached
fetch messages function still uses the cache if available, right
No
oh
I thought it does
Fetching a single message (by id) does
Ah gotcha
So I will disable the message cache
By the way, what's the bulk fetch ratelimit? I cant find it
It's not documented
It's like most limits: dynamic, could depend on various factors, Discord could change it at any time