EDA.Event.ChannelInfo (EDA v0.5.0-beta.2)

Copy Markdown View Source

A guild's ephemeral channel data — voice channel statuses and session start times — sent in answer to EDA.Channel.request_info/2 (opcode 43). These fields are not part of the channel object, so this is the only way to read them.

Each entry holds :id, and :status and :voice_start_time when they were requested.

Summary

Functions

Converts a raw Discord payload into this event struct.

Types

channel()

@type channel() :: %{
  id: String.t(),
  status: String.t() | nil,
  voice_start_time: DateTime.t() | nil
}

t()

@type t() :: %EDA.Event.ChannelInfo{channels: [channel()], guild_id: String.t() | nil}

Functions

from_raw(raw)

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

Converts a raw Discord payload into this event struct.