Crux vdev Crux.Structs.VoiceState View Source

Represents a Discord Voice State Object

Link to this section Summary

Functions

Creates a Crux.Structs.VoiceState struct from raw data.

Link to this section Types

Link to this type

t() View Source (since 0.1.0)
t() :: %Crux.Structs.VoiceState{
  channel_id: Crux.Rest.snowflake() | nil,
  deaf: boolean(),
  guild_id: Crux.Rest.snowflake(),
  mute: boolean(),
  self_deaf: boolean(),
  self_mute: boolean(),
  session_id: String.t(),
  suppress: boolean(),
  user_id: Crux.Rest.snowflake()
}

Link to this section Functions

Link to this function

create(data) View Source (since 0.1.0)
create(data :: map()) :: t()

Creates a Crux.Structs.VoiceState struct from raw data.

Automatically invoked by Crux.Structs.create/2.