pub struct AutoModActionExecution {
pub guild_id: Snowflake,
pub action: AutoModAction,
pub rule_id: Snowflake,
pub rule_trigger_type: AutoModTriggerType,
pub user_id: Snowflake,
pub channel_id: Option<Snowflake>,
pub message_id: Option<Snowflake>,
pub alert_system_message_id: Option<Snowflake>,
pub content: String,
pub matched_keyword: Option<String>,
pub matched_content: Option<String>,
}Expand description
Sent when a rule is triggered and an action is executed.
Fields§
§guild_id: SnowflakeID of the guild in which action was executed.
action: AutoModActionAction which was executed.
rule_id: SnowflakeID of the rule which action belongs to.
rule_trigger_type: AutoModTriggerTypeTrigger type of rule which was triggered.
user_id: SnowflakeID of the user which generated the content which triggered the rule.
channel_id: Option<Snowflake>ID of the channel in which user content was posted.
message_id: Option<Snowflake>ID of any user message which content belongs to.
alert_system_message_id: Option<Snowflake>ID of any system auto moderation messages posted as a result of this action.
content: StringUser-generated text content.
matched_keyword: Option<String>Word or phrase configured in the rule that triggered the rule.
matched_content: Option<String>Substring in content that triggered the rule.
Trait Implementations§
Source§impl Clone for AutoModActionExecution
impl Clone for AutoModActionExecution
Source§fn clone(&self) -> AutoModActionExecution
fn clone(&self) -> AutoModActionExecution
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AutoModActionExecution
impl Debug for AutoModActionExecution
Source§impl<'de> Deserialize<'de> for AutoModActionExecution
impl<'de> Deserialize<'de> for AutoModActionExecution
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AutoModActionExecution
impl RefUnwindSafe for AutoModActionExecution
impl Send for AutoModActionExecution
impl Sync for AutoModActionExecution
impl Unpin for AutoModActionExecution
impl UnwindSafe for AutoModActionExecution
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more