EDA.Event.GuildAuditLogEntryCreate (EDA v0.3.0)

Copy Markdown View Source

Dispatched when a guild audit log entry is created. Requires GUILD_MODERATION intent.

Summary

Functions

Converts a raw Discord payload into this event struct.

Types

t()

@type t() :: %EDA.Event.GuildAuditLogEntryCreate{
  action_type: integer() | nil,
  changes: [EDA.AuditLog.Change.t()] | nil,
  guild_id: String.t() | nil,
  id: String.t() | nil,
  options: map() | nil,
  reason: String.t() | nil,
  target_id: String.t() | nil,
  user_id: String.t() | nil
}

Functions

from_raw(raw)

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

Converts a raw Discord payload into this event struct.