EDA.Event.GuildUpdate (EDA v0.3.0)

Copy Markdown View Source

Dispatched when a guild is updated.

Summary

Functions

Converts a raw Discord payload into this event struct.

Types

t()

@type t() :: %EDA.Event.GuildUpdate{
  channels: [map()] | nil,
  icon: String.t() | nil,
  id: String.t() | nil,
  large: boolean() | nil,
  member_count: integer() | nil,
  members: [map()] | nil,
  name: String.t() | nil,
  owner_id: String.t() | nil,
  presences: [map()] | nil,
  roles: [EDA.Role.t()] | nil,
  unavailable: boolean() | nil,
  voice_states: [map()] | nil
}

Functions

from_raw(raw)

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

Converts a raw Discord payload into this event struct.