View Source Nostrum.Struct.Event.AutoModerationRuleExecute (Nostrum v0.9.0)

Sent when an auto-moderation rule executes. (e.g. message is blocked).

Summary

Types

The action that was executed

The id of any system message that was generated as a result of the action

The id of the channel in which the content was posted

The content of the message which triggered the rule

The id of the guild in which the action was executed

The substring which matched the content

The keyword that was matched in the content

The id of the message which was posted

The id of the rule that was executed

The type of the rule that was executed

t()

The id of the user which generated the content which triggered the rule

Types

Link to this type

action()

View Source (since 0.7.0)

The action that was executed

Link to this type

alert_system_message_id()

View Source (since 0.7.0)
@type alert_system_message_id() :: Nostrum.Struct.Message.id() | nil

The id of any system message that was generated as a result of the action

note: will not exist if the event does not correspond to an action that generates a system message

Link to this type

channel_id()

View Source (since 0.7.0)
@type channel_id() :: Nostrum.Struct.Channel.id() | nil

The id of the channel in which the content was posted

note: this field may not exist if the content was blocked from being created

Link to this type

content()

View Source (since 0.7.0)
@type content() :: String.t()

The content of the message which triggered the rule

Link to this type

guild_id()

View Source (since 0.7.0)
@type guild_id() :: Nostrum.Struct.Guild.id()

The id of the guild in which the action was executed

Link to this type

matched_content()

View Source (since 0.7.0)
@type matched_content() :: String.t() | nil

The substring which matched the content

Link to this type

matched_keyword()

View Source (since 0.7.0)
@type matched_keyword() :: String.t() | nil

The keyword that was matched in the content

Link to this type

message_id()

View Source (since 0.7.0)
@type message_id() :: Nostrum.Struct.Message.id() | nil

The id of the message which was posted

note: this field will not exist if the content was blocked from being created

Link to this type

rule_id()

View Source (since 0.7.0)

The id of the rule that was executed

Link to this type

rule_trigger_type()

View Source (since 0.7.0)
@type rule_trigger_type() :: Nostrum.Struct.AutoModerationRule.trigger_type()

The type of the rule that was executed

@type t() :: %Nostrum.Struct.Event.AutoModerationRuleExecute{
  action: action(),
  alert_system_message_id: alert_system_message_id(),
  channel_id: channel_id(),
  content: content(),
  guild_id: guild_id(),
  matched_content: matched_content(),
  matched_keyword: matched_keyword(),
  message_id: message_id(),
  rule_id: rule_id(),
  rule_trigger_type: rule_trigger_type(),
  user_id: user_id()
}
Link to this type

user_id()

View Source (since 0.7.0)
@type user_id() :: Nostrum.Struct.User.id()

The id of the user which generated the content which triggered the rule