pub enum AutoModerationTriggerType {
Keyword,
Spam,
KeywordPreset,
MentionSpam,
MemberProfile,
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.
MemberProfile
Check if member profile contains words from a user defined list of keywords.
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
impl Copy for AutoModerationTriggerType
impl Eq for AutoModerationTriggerType
impl StructuralPartialEq for AutoModerationTriggerType
Auto Trait Implementations§
impl Freeze for AutoModerationTriggerType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)