Limiting gateway data to reduce traffic usage

So is it possible to do something to reduce bandwidth, my bot which currently uses presence intent has over 500gb monthly inbound usage, which is kinda concerning so early.
10 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docs2y ago
guide Miscellaneous: Limiting caches As noted in the documentation, customizing GuildManager, ChannelManager, GuildChannelManager, RoleManager, or PermissionOverwriteManager is unsupported! Functionality will break with any kind of customization. read more
Digital
DigitalOP2y ago
yes i do
Digital
DigitalOP2y ago
well
Digital
DigitalOP2y ago
they are necessary because else core features wouldnt work i try to keep ram as low as possible too status updates (monitoring users and bots, and updating messages according to those updates) dont they keep bots own messages in cache? so i can just fast access them without fetching api wait really? why is that not noted anywhere but still, i'd need messageCreate event
d.js docs
d.js docs2y ago
• Websocket intents limit events and decrease memory usage: learn more • See what intents you need here
Digital
DigitalOP2y ago
maybe would look dumb but is nice feature
Digital
DigitalOP2y ago
it should tell you that bot receives message over messageCreate, creates collector awaiting new messages, and if there isnt any, it resends message and no i didnt say anything in video which ofc indicates usage of intent fair point yes any other possible efficiency you could see? wouldnt that stop receiving messages at all (second one) wouldnt that interval take up some memory even if it would be less, when it would trigger it to start isnt that kinda meh system when you put it in perspective because over time i'd have possibly thousands of running intervals and checking messages (channels) when some are not necessary to even check for because they'd be inactive, but i'd still run interval every x seconds with what i know, but like to check for messages, so i'd have to have sort of array of channel id's and then check each from cache and compare last message id/author? but collectors delete themselves when not used/ran? hopefully
Digital
DigitalOP2y ago
currently
Digital
DigitalOP2y ago
well true what if i'd just want to have some owner only text commands no way around messageCreate? yes, slash command eval with modal mmLol idk it happened i have all 3 intents by some magic i just wrote essay about details of every feature
Want results from more Discord servers?
Add your server