Enum twilight_model::channel::message::MessageType
source · [−]#[non_exhaustive]
pub enum MessageType {
Show 25 variants
Regular,
RecipientAdd,
RecipientRemove,
Call,
ChannelNameChange,
ChannelIconChange,
ChannelMessagePinned,
UserJoin,
GuildBoost,
GuildBoostTier1,
GuildBoostTier2,
GuildBoostTier3,
ChannelFollowAdd,
GuildDiscoveryDisqualified,
GuildDiscoveryRequalified,
GuildDiscoveryGracePeriodInitialWarning,
GuildDiscoveryGracePeriodFinalWarning,
ThreadCreated,
Reply,
ChatInputCommand,
ThreadStarterMessage,
GuildInviteReminder,
ContextMenuCommand,
AutoModerationAction,
Unknown(u8),
}Expand description
Type of a Message.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Regular
Regular message.
RecipientAdd
System message denoting a recipient has been added to a group.
RecipientRemove
System message denoting a recipient has been removed from a group.
Call
System message denoting a call state, e.g. missed, started.
ChannelNameChange
System message denoting a channel’s name has been changed.
ChannelIconChange
System message denoting a channel’s icon has been changed.
ChannelMessagePinned
System message denoting a message has been pinned.
UserJoin
System message denoting a member has joined a guild.
GuildBoost
System message denoting a user nitro boosted a guild.
GuildBoostTier1
System message denoting a user nitro boosted a guild to level 1.
GuildBoostTier2
System message denoting a user nitro boosted a guild to level 2.
GuildBoostTier3
System message denoting a user nitro boosted a guild to level 3.
ChannelFollowAdd
System message denoting a channel has been followed.
GuildDiscoveryDisqualified
System message denoting a guild has been disqualified for Server Discovery.
GuildDiscoveryRequalified
System message denoting a guild has been redisqualified for Server Discovery.
GuildDiscoveryGracePeriodInitialWarning
System message denoting an initial warning for Server Discovery disqualification.
GuildDiscoveryGracePeriodFinalWarning
System message denoting a final warning for Server Discovery disqualification.
ThreadCreated
Reply
Message is an inline reply.
ChatInputCommand
Message is a chat input command.
ThreadStarterMessage
GuildInviteReminder
ContextMenuCommand
AutoModerationAction
Message is an auto moderation action.
Unknown(u8)
Variant value is unknown to the library.
Trait Implementations
sourceimpl Clone for MessageType
impl Clone for MessageType
sourcefn clone(&self) -> MessageType
fn clone(&self) -> MessageType
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 more
sourceimpl Debug for MessageType
impl Debug for MessageType
sourceimpl<'de> Deserialize<'de> for MessageType
impl<'de> Deserialize<'de> for MessageType
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<MessageType> for u8
impl From<MessageType> for u8
sourcefn from(value: MessageType) -> Self
fn from(value: MessageType) -> Self
Converts to this type from the input type.
sourceimpl From<u8> for MessageType
impl From<u8> for MessageType
sourceimpl Hash for MessageType
impl Hash for MessageType
sourceimpl PartialEq<MessageType> for MessageType
impl PartialEq<MessageType> for MessageType
sourcefn eq(&self, other: &MessageType) -> bool
fn eq(&self, other: &MessageType) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl Serialize for MessageType
impl Serialize for MessageType
impl Copy for MessageType
impl Eq for MessageType
impl StructuralEq for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnwindSafe for MessageType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more