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
d.js toolkit
d.js toolkit10mo 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!
Kinect3000
Kinect300010mo ago
Do you rly need messages cached? Would be easier to just store the messages from a ticket in a db when they are sent
NotDemonix
NotDemonixOP10mo ago
storing in db could be a bit messy to handle
Kinect3000
Kinect300010mo ago
I disagree
NotDemonix
NotDemonixOP10mo ago
What about when the bot was offline
Kinect3000
Kinect300010mo ago
That's the only caveat You're still fetching messages since it won't be cached
NotDemonix
NotDemonixOP10mo ago
fetch messages function still uses the cache if available, right
Kinect3000
Kinect300010mo ago
No
NotDemonix
NotDemonixOP10mo ago
oh I thought it does
Kinect3000
Kinect300010mo ago
Fetching a single message (by id) does
NotDemonix
NotDemonixOP10mo ago
Ah gotcha So I will disable the message cache By the way, what's the bulk fetch ratelimit? I cant find it
Kinect3000
Kinect300010mo ago
It's not documented It's like most limits: dynamic, could depend on various factors, Discord could change it at any time
Want results from more Discord servers?
Add your server