#[non_exhaustive]pub enum MessageType {
Show 36 variants
Regular,
GroupRecipientAddition,
GroupRecipientRemoval,
GroupCallCreation,
GroupNameUpdate,
GroupIconUpdate,
PinsAdd,
MemberJoin,
NitroBoost,
NitroTier1,
NitroTier2,
NitroTier3,
ChannelFollowAdd,
GuildDiscoveryDisqualified,
GuildDiscoveryRequalified,
GuildDiscoveryGracePeriodInitialWarning,
GuildDiscoveryGracePeriodFinalWarning,
ThreadCreated,
InlineReply,
ChatInputCommand,
ThreadStarterMessage,
GuildInviteReminder,
ContextMenuCommand,
AutoModAction,
RoleSubscriptionPurchase,
InteractionPremiumUpsell,
StageStart,
StageEnd,
StageSpeaker,
StageTopic,
GuildApplicationPremiumSubscription,
GuildIncidentAlertModeEnabled,
GuildIncidentAlertModeDisabled,
GuildIncidentReportRaid,
GuildIncidentReportFalseAlarm,
Unknown(u8),
}
Expand description
Differentiates between regular and different types of system messages.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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
ChannelFollowAdd
An indicator that the channel is now following a news channel
GuildDiscoveryDisqualified
An indicator that the guild is disqualified for Discovery Feature
GuildDiscoveryRequalified
An indicator that the guild is requalified for Discovery Feature
GuildDiscoveryGracePeriodInitialWarning
The first warning before guild discovery removal.
GuildDiscoveryGracePeriodFinalWarning
The last warning before guild discovery removal.
ThreadCreated
Message sent to inform users that a thread was created.
InlineReply
A message reply.
ChatInputCommand
A slash command.
ThreadStarterMessage
A thread start message.
GuildInviteReminder
Server setup tips.
ContextMenuCommand
A context menu command.
AutoModAction
A message from an auto moderation action.
RoleSubscriptionPurchase
InteractionPremiumUpsell
StageStart
StageEnd
StageSpeaker
StageTopic
GuildApplicationPremiumSubscription
GuildIncidentAlertModeEnabled
GuildIncidentAlertModeDisabled
GuildIncidentReportRaid
GuildIncidentReportFalseAlarm
Unknown(u8)
Variant value is unknown.
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MessageType
impl Debug for MessageType
Source§impl Default for MessageType
impl Default for MessageType
Source§fn default() -> MessageType
fn default() -> MessageType
Source§impl<'de> Deserialize<'de> for MessageType
impl<'de> Deserialize<'de> for MessageType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MessageType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MessageType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<u8> for MessageType
impl From<u8> for MessageType
Source§fn from(value: u8) -> MessageType
fn from(value: u8) -> MessageType
Source§impl Hash for MessageType
impl Hash for MessageType
Source§impl Ord for MessageType
impl Ord for MessageType
Source§fn cmp(&self, other: &MessageType) -> Ordering
fn cmp(&self, other: &MessageType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for MessageType
impl PartialEq for MessageType
Source§impl PartialOrd for MessageType
impl PartialOrd for MessageType
Source§impl Serialize for MessageType
impl Serialize for MessageType
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,
impl Copy for MessageType
impl Eq for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations§
impl Freeze for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnwindSafe for MessageType
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
Source§impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CloneableStorage for T
impl<T> CloneableStorage for T
fn clone_storage(&self) -> Box<dyn CloneableStorage>
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key
and return true
if they are equal.