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 toolkit13mo 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
NotDemonixOP12mo 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
suspense12mo ago
are intents the only major factor when it comes to optimizing? outside of customising caching i guess? or are there other ways
NotDemonix
NotDemonixOP12mo ago
Don't i need to fetch the member/get it from the cache?
d.js docs
d.js docs12mo ago
method UserManager#send() Sends a message to a user.
NotDemonix
NotDemonixOP12mo ago
o ❤️ how can i know if the dm worked? Okay for member roles I can luckly just use the one discord provides
Want results from more Discord servers?
Add your server