Lingo.Cache.Member (Lingo v0.4.2)

Copy Markdown View Source

Cached guild members. See Lingo.Cache for enabling and configuring the cache.

Summary

Functions

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

A guild's cached members, with their users. 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.Member.t() | nil

A guild member, with their user, 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.Member.t()]

A guild's cached members, with their users. Takes cluster: true as get/3 does.