Skip to content

DataManager

classe · Source

Manages the API methods of a data model along with a collection of instances.

Extends: BaseManager

Properties

holds

readonly · private

holds: function

The data structure belonging to this manager. Source

cache

abstract

cache: Collection

The cache of items for 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.