Lingo.Cache.Presence (Lingo v0.4.2)

Copy Markdown View Source

Cached presences. See Lingo.Cache for enabling and configuring the cache.

Summary

Functions

A member's presence, or nil. cluster: true asks the node running the guild's shard on a miss.

A guild's cached presences. Takes cluster: true as get/3 does.

Functions

get(guild_id, user_id, opts \\ [])

@spec get(Lingo.Api.id(), Lingo.Api.id(), keyword()) :: Lingo.Type.Presence.t() | nil

A member's presence, or nil. cluster: true asks the node running the guild's shard on a miss.

list(guild_id, opts \\ [])

@spec list(
  Lingo.Api.id(),
  keyword()
) :: [Lingo.Type.Presence.t()]

A guild's cached presences. Takes cluster: true as get/3 does.