Lingo.Event.AutoModerationAction (Lingo v0.4.2)

Copy Markdown View Source

The payload of :auto_moderation_action_execution: an auto moderation rule acted on a message or member.

message_id is nil when the message was blocked, and alert_system_message_id is set only for alert actions. content and matched_content need the message content intent.

Summary

Types

t()

@type t() :: %Lingo.Event.AutoModerationAction{
  action: Lingo.Type.AutoModerationRule.action(),
  alert_system_message_id: String.t() | nil,
  channel_id: String.t() | nil,
  content: String.t(),
  guild_id: String.t(),
  matched_content: String.t() | nil,
  matched_keyword: String.t() | nil,
  message_id: String.t() | nil,
  rule_id: String.t(),
  rule_trigger_type: Lingo.Type.AutoModerationRule.trigger_type() | integer(),
  user_id: String.t()
}