pub struct SlashCommandMention<'a> { /* private fields */ }Expand description
Mentions a slash command, a clickable link that fills in the command:
</NAME:ID>, </NAME SUBCOMMAND:ID> or </NAME GROUP SUBCOMMAND:ID>. Returned by
slash_command_mention.
discord.js counterpart: the string chatInputApplicationCommandMention returns (@discordjs/formatters).
Implementations§
Source§impl<'a> SlashCommandMention<'a>
impl<'a> SlashCommandMention<'a>
Sourcepub const fn subcommand(self, subcommand: &'a str) -> Self
pub const fn subcommand(self, subcommand: &'a str) -> Self
Mentions the command’s subcommand subcommand, outside a group.
discord.js counterpart: the subcommandName argument of chatInputApplicationCommandMention (@discordjs/formatters).
Trait Implementations§
Source§impl<'a> Clone for SlashCommandMention<'a>
impl<'a> Clone for SlashCommandMention<'a>
impl<'a> Copy for SlashCommandMention<'a>
Source§impl<'a> Debug for SlashCommandMention<'a>
impl<'a> Debug for SlashCommandMention<'a>
Source§impl Display for SlashCommandMention<'_>
impl Display for SlashCommandMention<'_>
impl<'a> Eq for SlashCommandMention<'a>
Source§impl<'a> Hash for SlashCommandMention<'a>
impl<'a> Hash for SlashCommandMention<'a>
Source§impl<'a> PartialEq for SlashCommandMention<'a>
impl<'a> PartialEq for SlashCommandMention<'a>
impl<'a> StructuralPartialEq for SlashCommandMention<'a>
Auto Trait Implementations§
impl<'a> Freeze for SlashCommandMention<'a>
impl<'a> RefUnwindSafe for SlashCommandMention<'a>
impl<'a> Send for SlashCommandMention<'a>
impl<'a> Sync for SlashCommandMention<'a>
impl<'a> Unpin for SlashCommandMention<'a>
impl<'a> UnsafeUnpin for SlashCommandMention<'a>
impl<'a> UnwindSafe for SlashCommandMention<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ListEntry for Twhere
T: WriteEntry + ?Sized,
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more