PresenceManager
classe · Source
Manages API methods for Presences and holds their cache.
Extends: CachedManager
Properties
cache
cache: Collection<Snowflake, Presence>
The cache of Presences Source
_cache
_cache: Collection
The private cache of items for this manager. Source
holds
holds: function
The data structure belonging to this manager. Source
client
client: Client
The client that instantiated this Manager Source
Methods
resolve
resolve(presence: PresenceResolvable): Presence
Resolves a PresenceResolvable to a Presence object. Parameters
| Name | Type | Description |
|---|---|---|
presence | PresenceResolvable | The presence resolvable to resolve |
Returns: PresenceSource
resolveId
resolveId(presence: PresenceResolvable): Snowflake
Resolves a PresenceResolvable to a Presence id. Parameters
| Name | Type | Description |
|---|---|---|
presence | PresenceResolvable | The presence resolvable to resolve |
Returns: SnowflakeSource
fetch
async fetch(): Promise<Collection<Snowflake, Presence>>
Fetches the overall user presence for all of the user's non-offline friends and implicit relationships. Returns: Promise<Collection<Snowflake, Presence>>Source