pub enum SerenityMessageMentionType {
Everyone,
Here,
Users(Vec<UserId>),
Roles(Vec<RoleId>),
Reply(Box<Message>),
}Expand description
An enumeration representing the different types of mentions that can be included in a Discord message. These mention types allow you to specify who or what should be mentioned in the message.
Variants§
Everyone
Mentions everyone in the guild.
Here
Mentions online members in the guild.
Users(Vec<UserId>)
Mentions specific users by their user IDs.
Roles(Vec<RoleId>)
Mentions specific roles by their role IDs.
Reply(Box<Message>)
Mentions a specific message.
Trait Implementations§
Source§impl Clone for SerenityMessageMentionType
impl Clone for SerenityMessageMentionType
Source§fn clone(&self) -> SerenityMessageMentionType
fn clone(&self) -> SerenityMessageMentionType
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<'de> Deserialize<'de> for SerenityMessageMentionType
impl<'de> Deserialize<'de> for SerenityMessageMentionType
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
Auto Trait Implementations§
impl Freeze for SerenityMessageMentionType
impl RefUnwindSafe for SerenityMessageMentionType
impl Send for SerenityMessageMentionType
impl Sync for SerenityMessageMentionType
impl Unpin for SerenityMessageMentionType
impl UnwindSafe for SerenityMessageMentionType
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