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 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 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
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
)