Class: BaseManager

BaseManager

Manages the API methods of a data model and holds its cache.

Constructor

(abstract) new BaseManager()

Source:

Members

cache :Collection

Holds the cache for the data model
Type:
  • Collection
Source:

cacheType :Collection

The type of Collection of the Manager
Type:
  • Collection
Source:

(readonly) client :Client

The client that instantiated this Manager
Type:
Source:

(private, readonly) holds :function

The data structure belonging to this manager
Type:
  • function
Source:

Methods

resolve(idOrInstance) → {Object}

Resolves a data entry to a data Object.
Parameters:
Name Type Description
idOrInstance string | Object The id or instance of something in this Manager
Source:
Returns:
An instance from this Manager
Type
Object

resolveID(idOrInstance) → {Snowflake}

Resolves a data entry to a instance ID.
Parameters:
Name Type Description
idOrInstance string | Object The id or instance of something in this Manager
Source:
Returns:
Type
Snowflake