Mention

Trait Mention 

Source
pub trait Mention {
    // Required method
    fn mention(&self) -> String;
}
Expand description

Trait for items that can be mentioned in Discord.

Required Methods§

Source

fn mention(&self) -> String

Returns the mention string for this item (e.g., <@123>).

Implementors§

Source§

impl Mention for GuildMember<'_>

Source§

impl Mention for Role<'_>

Source§

impl<'a> Mention for Channel<'a>

Source§

impl<'a> Mention for User<'a>