#What is cached?

1 messages · Page 1 of 1 (latest)

unborn mulch
#

I can't seem to find a solid answer for this, what is always cached by discord js on startup and what needs to be fetched? Right now my understanding is guilds and channels are always cached, while members should be fetched always. Not sure about roles

buoyant burrowBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

strange phoenix
unborn mulch
#

Sorry let me clarify my question, what is always in the cache? I'm asking this because I remember reading somewhere that channels are always cached so you don't need to fetch, but for users/members you should always fetch because they might not be cached yet. Don't know if that's actually true or not

strange phoenix
#

that is correct

#

but in 9/10 cases that data is going to be cached just fine unless you're sweeping aggresively through your own sweeper config

unborn mulch
#

I see thanks

#

Then to confirm roles are also always in the cache?

drowsy isle
#

And up to date as well, unless there's a rare API issue that prevents them from sending updates to us

unborn mulch
#

Awesome thanks