#[non_exhaustive]pub enum GuildNavigation {
Browse,
Customize,
Guide,
LinkedRoles,
}Expand description
A guild navigation link, opening a tab of the current server.
discord.js counterpart: GuildNavigationMentions.
§Examples
use djs_formatters::GuildNavigation;
assert_eq!(format!("Pick your roles in {}", GuildNavigation::Customize), "Pick your roles in <id:customize>");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Browse
The Browse Channels tab: <id:browse>.
Customize
The Channels & Roles tab with the onboarding prompts: <id:customize>.
Guide
The Server Guide tab: <id:guide>.
LinkedRoles
The Linked Roles tab: <id:linked-roles>. One linked role is linked with
linked_role_mention.
Implementations§
Trait Implementations§
Auto Trait Implementations§
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