Skip to content

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 ​

readonly · private

_cache: Collection

The private 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(presence: PresenceResolvable): Presence

Resolves a PresenceResolvable to a Presence object. Parameters

NameTypeDescription
presencePresenceResolvableThe presence resolvable to resolve

Returns: PresenceSource

resolveId ​

resolveId(presence: PresenceResolvable): Snowflake

Resolves a PresenceResolvable to a Presence id. Parameters

NameTypeDescription
presencePresenceResolvableThe presence resolvable to resolve

Returns: SnowflakeSource

fetch ​

async

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

Unofficial software. Not affiliated with or supported by Discord.