pub enum AutoModerationTriggerType {
Keyword,
Spam,
KeywordPreset,
MentionSpam,
Unknown(u8),
}
Expand description
Characterizes the type of content which can trigger the rule.
Variants§
Keyword
Check if content contains words from a user defined list of keywords.
Maximum of 5 per guild.
Spam
Check if content represents generic spam.
Currently unreleased. Maximum of 1 per guild.
KeywordPreset
Check if content contains words from internal pre-defined wordsets.
Maximum of 1 per guild.
MentionSpam
Check if content contains more unique mentions than allowed.
Unknown(u8)
Variant value is unknown to the library.
Trait Implementations§
source§impl Clone for AutoModerationTriggerType
impl Clone for AutoModerationTriggerType
source§fn clone(&self) -> AutoModerationTriggerType
fn clone(&self) -> AutoModerationTriggerType
Returns a copy 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 AutoModerationTriggerType
impl Debug for AutoModerationTriggerType
source§impl<'de> Deserialize<'de> for AutoModerationTriggerType
impl<'de> Deserialize<'de> for AutoModerationTriggerType
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
source§impl From<AutoModerationTriggerType> for u8
impl From<AutoModerationTriggerType> for u8
source§fn from(value: AutoModerationTriggerType) -> Self
fn from(value: AutoModerationTriggerType) -> Self
Converts to this type from the input type.
source§impl From<u8> for AutoModerationTriggerType
impl From<u8> for AutoModerationTriggerType
source§impl Hash for AutoModerationTriggerType
impl Hash for AutoModerationTriggerType
source§impl PartialEq<AutoModerationTriggerType> for AutoModerationTriggerType
impl PartialEq<AutoModerationTriggerType> for AutoModerationTriggerType
source§fn eq(&self, other: &AutoModerationTriggerType) -> bool
fn eq(&self, other: &AutoModerationTriggerType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AutoModerationTriggerType
impl Eq for AutoModerationTriggerType
impl StructuralEq for AutoModerationTriggerType
impl StructuralPartialEq for AutoModerationTriggerType
Auto Trait Implementations§
impl RefUnwindSafe for AutoModerationTriggerType
impl Send for AutoModerationTriggerType
impl Sync for AutoModerationTriggerType
impl Unpin for AutoModerationTriggerType
impl UnwindSafe for AutoModerationTriggerType
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