pub enum AutoModerationActionType {
BlockMessage,
SendAlertMessage,
Timeout,
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.
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 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 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<AutoModerationActionType> for AutoModerationActionType
impl PartialEq<AutoModerationActionType> for AutoModerationActionType
source§fn eq(&self, other: &AutoModerationActionType) -> bool
fn eq(&self, other: &AutoModerationActionType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.