[][src]Enum serenity::model::channel::MessageType

pub enum MessageType {
    Regular,
    GroupRecipientAddition,
    GroupRecipientRemoval,
    GroupCallCreation,
    GroupNameUpdate,
    GroupIconUpdate,
    PinsAdd,
    MemberJoin,
    NitroBoost,
    NitroTier1,
    NitroTier2,
    NitroTier3,
    // some variants omitted
}

Differentiates between regular and different types of system messages.

Variants

Regular

A regular message.

GroupRecipientAddition

An indicator that a recipient was added by the author.

GroupRecipientRemoval

An indicator that a recipient was removed by the author.

GroupCallCreation

An indicator that a call was started by the author.

GroupNameUpdate

An indicator that the group name was modified by the author.

GroupIconUpdate

An indicator that the group icon was modified by the author.

PinsAdd

An indicator that a message was pinned by the author.

MemberJoin

An indicator that a member joined the guild.

NitroBoost

An indicator that someone has boosted the guild.

NitroTier1

An indicator that the guild has reached nitro tier 1

NitroTier2

An indicator that the guild has reached nitro tier 2

NitroTier3

An indicator that the guild has reached nitro tier 3

Implementations

impl MessageType[src]

pub fn num(self) -> u64[src]

Trait Implementations

impl Clone for MessageType[src]

impl Copy for MessageType[src]

impl Debug for MessageType[src]

impl<'de> Deserialize<'de> for MessageType[src]

impl Eq for MessageType[src]

impl Hash for MessageType[src]

impl Ord for MessageType[src]

impl PartialEq<MessageType> for MessageType[src]

impl PartialOrd<MessageType> for MessageType[src]

impl Serialize for MessageType[src]

impl StructuralEq for MessageType[src]

impl StructuralPartialEq for MessageType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> DebugAny for T where
    T: Any + Debug
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,