Class: PresenceManager

PresenceManager

Manages API methods for Presences and holds their cache.

Constructor

new PresenceManager()

Source:

Extends

Members

cache :Collection.<Snowflake, Presence>

The cache of Presences
Type:
Overrides:
Source:

cacheType :Collection

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

(readonly) client :Client

The client that instantiated this Manager
Type:
Overrides:
Source:

(private, readonly) holds :function

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

Methods

resolve(presence) → {Presence}

Resolves a PresenceResolvable to a Presence object.
Parameters:
Name Type Description
presence PresenceResolvable The presence resolvable to resolve
Overrides:
Source:
Returns:
Type
Presence

resolveID(presence) → {Snowflake}

Resolves a PresenceResolvable to a Presence ID string.
Parameters:
Name Type Description
presence PresenceResolvable The presence resolvable to resolve
Overrides:
Source:
Returns:
Type
Snowflake