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

Copy Markdown View Source

Fired when a shard finishes loading all its guilds.

guild_count is the number of guilds loaded — fewer than the shard's guilds when some did not arrive before the ready timeout.

Summary

Functions

Converts a raw payload into this event struct.

Types

t()

@type t() :: %EDA.Event.ShardReady{
  duration_ms: non_neg_integer() | nil,
  guild_count: non_neg_integer() | nil,
  shard_id: non_neg_integer() | nil
}

Functions

from_raw(raw)

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

Converts a raw payload into this event struct.