EDA.Event.VoiceStateUpdate (EDA v0.3.0)

Copy Markdown View Source

Dispatched when a user's voice state changes.

Summary

Functions

Converts a raw Discord payload into this event struct.

Types

t()

@type t() :: %EDA.Event.VoiceStateUpdate{
  channel_id: String.t() | nil,
  deaf: boolean() | nil,
  guild_id: String.t() | nil,
  member: EDA.Member.t() | nil,
  mute: boolean() | nil,
  request_to_speak_timestamp: String.t() | nil,
  self_deaf: boolean() | nil,
  self_mute: boolean() | nil,
  self_stream: boolean() | nil,
  self_video: boolean() | nil,
  session_id: String.t() | nil,
  suppress: boolean() | nil,
  user_id: String.t() | nil
}

Functions

from_raw(raw)

@spec from_raw(map()) :: t()

Converts a raw Discord payload into this event struct.