Optimizing ram usage

Hi! I need to find a way to lower the ram usage even more. What can I do? I have attached my current makeCache function. Ask me if anything more is needed
No description
6 Replies
d.js toolkit
d.js toolkit7mo 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! - Marked as resolved by staff
NotDemonix
NotDemonix7mo ago
I disabled all I don't use Tickets. I need messages (transcripts), channels, roles, emojis, guild members, users And i think thats all? I will cut down messages, members are needed to dm the ticket author once the ticket is closed to just not keep on fetching the users.
Suspense
Suspense7mo ago
are intents the only major factor when it comes to optimizing? outside of customising caching i guess? or are there other ways
NotDemonix
NotDemonix7mo ago
Don't i need to fetch the member/get it from the cache?
d.js docs
d.js docs7mo ago
method UserManager#send() Sends a message to a user.
NotDemonix
NotDemonix7mo ago
o ❤️ how can i know if the dm worked? Okay for member roles I can luckly just use the one discord provides