pub struct AutoModerationActionExecution {
    pub action: AutoModerationAction,
    pub alert_system_message_id: Option<Id<MessageMarker>>,
    pub channel_id: Option<Id<ChannelMarker>>,
    pub content: String,
    pub guild_id: Id<GuildMarker>,
    pub matched_content: Option<String>,
    pub matched_keyword: Option<String>,
    pub message_id: Option<Id<MessageMarker>>,
    pub rule_id: Id<AutoModerationRuleMarker>,
    pub rule_trigger_type: AutoModerationTriggerType,
    pub user_id: Id<UserMarker>,
}Expand description
Message has been blocked by AutoMod according to a rule.
Requires Permissions::MANAGE_GUILD.
Fields§
§action: AutoModerationActionAction which was executed.
alert_system_message_id: Option<Id<MessageMarker>>ID of any system auto moderation messages posted as a result of this action.
Will not exist if this event does not correspond to an action with type
SendAlertMessage.
channel_id: Option<Id<ChannelMarker>>ID of the channel in which user content was posted.
content: StringUser generated text content.
Requires Intents::MESSAGE_CONTENT.
guild_id: Id<GuildMarker>ID of the guild in which action was executed.
matched_content: Option<String>Substring in content that triggered the rule.
Requires Intents::MESSAGE_CONTENT.
matched_keyword: Option<String>Word or phrase configured in the rule that triggered the rule.
message_id: Option<Id<MessageMarker>>ID of any user message which content belongs to.
Will not exist if message was blocked by AutoMod or content was not part of any message.
rule_id: Id<AutoModerationRuleMarker>ID of the rule which action belongs to.
rule_trigger_type: AutoModerationTriggerTypeType of rule which was triggered.
user_id: Id<UserMarker>ID of the user which generated the content which triggered the rule.
Trait Implementations§
Source§impl Clone for AutoModerationActionExecution
 
impl Clone for AutoModerationActionExecution
Source§fn clone(&self) -> AutoModerationActionExecution
 
fn clone(&self) -> AutoModerationActionExecution
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for AutoModerationActionExecution
 
impl<'de> Deserialize<'de> for AutoModerationActionExecution
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Source§impl Hash for AutoModerationActionExecution
 
impl Hash for AutoModerationActionExecution
Source§impl PartialEq for AutoModerationActionExecution
 
impl PartialEq for AutoModerationActionExecution
Source§fn eq(&self, other: &AutoModerationActionExecution) -> bool
 
fn eq(&self, other: &AutoModerationActionExecution) -> bool
self and other values to be equal, and is used by ==.