Skip to content

CachedManager ​

classe · Source

Manages the API methods of a data model with a mutable cache of instances.

Extends: DataManager

Properties ​

_cache ​

readonly · private

_cache: Collection

The private cache of items for this manager. Source

cache ​

abstract

cache: Collection

The cache of items for this manager. Source

holds ​

readonly · private

holds: function

The data structure belonging to this manager. Source

client ​

readonly

client: Client

The client that instantiated this Manager Source

Methods ​

resolve ​

resolve(idOrInstance: string | Object): Object

Resolves a data entry to a data Object. Parameters

NameTypeDescription
idOrInstancestring | ObjectThe id or instance of something in this Manager

Returns: Object — An instance from this Manager Source

resolveId ​

resolveId(idOrInstance: string | Object): Snowflake

Resolves a data entry to an instance id. Parameters

NameTypeDescription
idOrInstancestring | ObjectThe id or instance of something in this Manager

Returns: SnowflakeSource

Unofficial software. Not affiliated with or supported by Discord.