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
sourceimpl Clone for AutoModerationActionType
impl Clone for AutoModerationActionType
sourcefn clone(&self) -> AutoModerationActionType
fn clone(&self) -> AutoModerationActionType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for AutoModerationActionType
impl Debug for AutoModerationActionType
sourceimpl<'de> Deserialize<'de> for AutoModerationActionType
impl<'de> Deserialize<'de> for AutoModerationActionType
sourcefn 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
sourceimpl From<AutoModerationActionType> for u8
impl From<AutoModerationActionType> for u8
sourcefn from(value: AutoModerationActionType) -> Self
fn from(value: AutoModerationActionType) -> Self
Converts to this type from the input type.
sourceimpl From<u8> for AutoModerationActionType
impl From<u8> for AutoModerationActionType
sourceimpl Hash for AutoModerationActionType
impl Hash for AutoModerationActionType
sourceimpl PartialEq<AutoModerationActionType> for AutoModerationActionType
impl PartialEq<AutoModerationActionType> for AutoModerationActionType
sourcefn eq(&self, other: &AutoModerationActionType) -> bool
fn eq(&self, other: &AutoModerationActionType) -> bool
sourceimpl Serialize for AutoModerationActionType
impl Serialize for AutoModerationActionType
impl Copy for AutoModerationActionType
impl Eq for AutoModerationActionType
impl StructuralEq for AutoModerationActionType
impl StructuralPartialEq for AutoModerationActionType
Auto Trait Implementations
impl RefUnwindSafe for AutoModerationActionType
impl Send for AutoModerationActionType
impl Sync for AutoModerationActionType
impl Unpin for AutoModerationActionType
impl UnwindSafe for AutoModerationActionType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more