Lingo.Event.Ready (Lingo v0.4.2)

Copy Markdown View Source

The payload of :ready: a shard started a new session.

It fires for every shard, and again whenever a shard has to start over instead of resuming (a resume fires :resumed). To run something once every shard is up, use Lingo.Gateway.await_ready/1. guilds are the shard's guilds, unavailable until their :guild_create arrives.

Summary

Types

t()

@type t() :: %Lingo.Event.Ready{
  application_flags: integer() | nil,
  application_id: String.t(),
  guilds: [Lingo.Type.Guild.t()],
  session_id: String.t(),
  shard_count: pos_integer(),
  shard_id: non_neg_integer(),
  user: Lingo.Type.User.t()
}