EDA.Event.GatewayClose (EDA v0.3.0)

Copy Markdown View Source

Fired when a shard disconnects from the gateway.

Summary

Functions

Converts a raw payload into this event struct.

Types

t()

@type t() :: %EDA.Event.GatewayClose{
  action: String.t() | nil,
  code: integer() | nil,
  reason: String.t() | nil,
  shard_id: non_neg_integer() | nil,
  will_reconnect: boolean() | nil
}

Functions

from_raw(raw)

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

Converts a raw payload into this event struct.