pub enum AutoModerationActionType {
    BlockMessage,
    SendAlertMessage,
    Timeout,
    BlockMemberInteraction,
    Unknown(u8),
}Expand description
Type of AutoModerationAction.
Variants§
BlockMessage
Blocks the content of a message according to the rule.
SendAlertMessage
Logs user content to a specified channel.
Timeout
Timeout user for a specified duration.
A Timeout action can only be setup for Keyword rules.
Permissions::MODERATE_MEMBERS is required to use the Timeout action
type.
BlockMemberInteraction
Prevents a member from using text, voice, or other interactions.
Unknown(u8)
Variant value is unknown to the library.
Trait Implementations§
Source§impl Clone for AutoModerationActionType
 
impl Clone for AutoModerationActionType
Source§fn clone(&self) -> AutoModerationActionType
 
fn clone(&self) -> AutoModerationActionType
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 AutoModerationActionType
 
impl Debug for AutoModerationActionType
Source§impl<'de> Deserialize<'de> for AutoModerationActionType
 
impl<'de> Deserialize<'de> for AutoModerationActionType
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<AutoModerationActionType> for u8
 
impl From<AutoModerationActionType> for u8
Source§fn from(value: AutoModerationActionType) -> Self
 
fn from(value: AutoModerationActionType) -> Self
Converts to this type from the input type.
Source§impl From<u8> for AutoModerationActionType
 
impl From<u8> for AutoModerationActionType
Source§impl Hash for AutoModerationActionType
 
impl Hash for AutoModerationActionType
Source§impl PartialEq for AutoModerationActionType
 
impl PartialEq for AutoModerationActionType
Source§impl Serialize for AutoModerationActionType
 
impl Serialize for AutoModerationActionType
impl Copy for AutoModerationActionType
impl Eq for AutoModerationActionType
impl StructuralPartialEq for AutoModerationActionType
Auto Trait Implementations§
impl Freeze for AutoModerationActionType
impl RefUnwindSafe for AutoModerationActionType
impl Send for AutoModerationActionType
impl Sync for AutoModerationActionType
impl Unpin for AutoModerationActionType
impl UnwindSafe for AutoModerationActionType
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