EDA.Event.InteractionCreate (EDA v0.3.0)

Copy Markdown View Source

Dispatched when a user uses an application command or component.

Summary

Functions

Converts a raw Discord payload into this event struct.

Types

t()

@type t() :: %EDA.Event.InteractionCreate{
  app_permissions: String.t() | nil,
  application_id: String.t() | nil,
  channel_id: String.t() | nil,
  data: map() | nil,
  entitlements: [map()] | nil,
  guild_id: String.t() | nil,
  guild_locale: String.t() | nil,
  id: String.t() | nil,
  locale: String.t() | nil,
  member: EDA.Member.t() | nil,
  message: EDA.Message.t() | nil,
  token: String.t() | nil,
  type: integer() | nil,
  user: EDA.User.t() | nil
}

Functions

from_raw(raw)

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

Converts a raw Discord payload into this event struct.