Create a cache manager.
A callback to be used for logging events internally in the cache manager.
OptionallogThisArg: anyA value to use as this in the logCallback.
OptionalchannelsCached channels. A channel's key in the map is its ID.
OptionalguildsCached guilds. A guild's key in the map is its ID.
OptionalmembersCached members. Each key of the parent cache is a guild ID, with its children being a map of members in that guild. A member's key in its map is its user ID.
ReadonlyoptionsOptions for the cache manager. Note that any options not specified are set to a default value.
OptionalpresencesCached presences. Each key of the parent cache is a guild ID, with its children being a map of presences in that guild. A presence's key in its map is its user's ID.
OptionalrolesCached roles. A role's key in the map is its ID.
ReadonlysystemThe system string used for logging.
OptionalusersCached users. A user's key in the map is its ID.
OptionalvoiceCached voice states. Each key of the parent cache is a guild ID, with its children being a map of voice states in that guild. A voice state's key in its map is its user's ID.
The cache manager. Contains cached data, and cacheEventHandler handles dispatched gateway events to keep the cache up to date. Keep in mind that there are many caveats to the gateway, and that real-world cache data may not directly reflect your cache control options. It is recommended that you research intents and the caveats to the gateway, to make sure your bot receives sufficient data for your use case.
See
Discord API Reference