Lingo.Cache.VoiceState (Lingo v0.4.2)

Copy Markdown View Source

Cached voice states: who is in which voice channel. See Lingo.Cache for enabling and configuring the cache.

Summary

Functions

A user's voice state, while they're in a voice channel, or nil. cluster: true asks the node running the guild's shard on a miss.

The voice states of everyone in a guild's voice channels. Takes cluster: true as get/3 does.

Functions

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

A user's voice state, while they're in a voice channel, 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.VoiceState.t()]

The voice states of everyone in a guild's voice channels. Takes cluster: true as get/3 does.