Lingo.Cache.User (Lingo v0.4.2)

Copy Markdown View Source

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

Summary

Functions

A user, or nil. cluster: true asks the other nodes on a miss.

The bot's own user, once the first shard is ready. Kept even with the user cache off.

Functions

get(id, opts \\ [])

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

A user, or nil. cluster: true asks the other nodes on a miss.

get_current()

@spec get_current() :: Lingo.Type.User.t() | nil

The bot's own user, once the first shard is ready. Kept even with the user cache off.