summaryrefslogtreecommitdiff
path: root/deps/discord-haskell/docs/cache.md
blob: 5303f88ad15eb5097248bbf87d293fb25995ab84 (plain)
1
2
3
4
5
6
7
8
9
10
11
### Cache

The cache (`readCache`) is a work in progress.

The CurrentUser and Application fields are filled before the onStart handler is called.

Other fields are not filled in by default. If `RunDiscordOpts.discordEnableCache` is `true` then they will be filled in as the gateay receives events.

No rest requests are cached (yet, WIP).

Current source code is at [Discord.Internal.Gateway.Cache](../src/Discord/Internal/Gateway/Cache.hs)