Create a cache manager.
A callback to be used for logging events internally in the cache manager.
Optional
logThisArg: anyA value to use as this
in the logCallback
.
Optional
channelsCached channels. A channel's key in the map is its ID.
Optional
guildsCached guilds. A guild's key in the map is its ID.
Optional
membersCached 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.
Readonly
optionsOptions for the cache manager. Note that any options not specified are set to a default value.
Optional
presencesCached 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.
Optional
rolesCached roles. A role's key in the map is its ID.
Readonly
systemThe system string used for logging.
Optional
usersCached users. A user's key in the map is its ID.
Optional
voiceCached 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.
Generated using TypeDoc
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