EDA.Event.Ready (EDA v0.3.0)

Copy Markdown View Source

Dispatched when the client has completed the initial handshake.

Summary

Functions

Converts a raw Discord payload into this event struct.

Types

t()

@type t() :: %EDA.Event.Ready{
  application: map() | nil,
  guilds: [map()] | nil,
  resume_gateway_url: String.t() | nil,
  session_id: String.t() | nil,
  shard: [integer()] | nil,
  user: EDA.User.t() | nil,
  v: integer() | nil
}

Functions

from_raw(raw)

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

Converts a raw Discord payload into this event struct.