#[repr(u8)]pub enum AutoModActionType {
BlockMessage = 1,
SendAlertMessage = 2,
Timeout = 3,
BlockMemberInteraction = 4,
}Expand description
AutoMod action types.
Variants§
BlockMessage = 1
Blocks a member’s message and prevents it from being posted.
SendAlertMessage = 2
Logs user content to a specified channel.
Timeout = 3
Timeout user for a specified duration.
BlockMemberInteraction = 4
Prevents a member from using text, voice, or other interactions.
Trait Implementations§
Source§impl Clone for AutoModActionType
impl Clone for AutoModActionType
Source§fn clone(&self) -> AutoModActionType
fn clone(&self) -> AutoModActionType
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 AutoModActionType
impl Debug for AutoModActionType
Source§impl<'de> Deserialize<'de> for AutoModActionType
impl<'de> Deserialize<'de> for AutoModActionType
Source§fn deserialize<D>(
deserializer: D,
) -> Result<AutoModActionType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<AutoModActionType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AutoModActionType
impl PartialEq for AutoModActionType
Source§impl Serialize for AutoModActionType
impl Serialize for AutoModActionType
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for AutoModActionType
impl Eq for AutoModActionType
impl StructuralPartialEq for AutoModActionType
Auto Trait Implementations§
impl Freeze for AutoModActionType
impl RefUnwindSafe for AutoModActionType
impl Send for AutoModActionType
impl Sync for AutoModActionType
impl Unpin for AutoModActionType
impl UnwindSafe for AutoModActionType
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.