Lingo.Cache.Role (Lingo v0.4.2)

Copy Markdown View Source

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

Summary

Functions

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

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

Functions

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

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

A role, 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.Role.t()]

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