EDA.Event.AutoModActionExecution (EDA v0.3.0)

Copy Markdown View Source

Dispatched when an Auto Moderation rule action is executed.

Summary

Functions

Converts a raw Discord payload into this event struct.

Types

t()

@type t() :: %EDA.Event.AutoModActionExecution{
  action: EDA.AutoMod.Action.t() | nil,
  alert_system_message_id: String.t() | nil,
  channel_id: String.t() | nil,
  content: String.t() | nil,
  guild_id: String.t() | nil,
  matched_content: String.t() | nil,
  matched_keyword: String.t() | nil,
  message_id: String.t() | nil,
  rule_id: String.t() | nil,
  rule_trigger_type: integer() | nil,
  user_id: String.t() | nil
}

Functions

from_raw(raw)

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

Converts a raw Discord payload into this event struct.