[−][src]Struct serenity::framework::standard::HelpOptions
Fields
names: &'static [&'static str]
Which names should the help command use for dispatching.
Defaults to ["help"]
suggestion_text: &'static str
Suggests a command's name.
no_help_available_text: &'static str
If no help is available, this text will be displayed.
usage_label: &'static str
How to use a command, {usage_label}: {command_name} {args}
usage_sample_label: &'static str
Actual sample label, {usage_sample_label}: {command_name} {args}
ungrouped_label: &'static str
Text labeling ungrouped commands, {ungrouped_label}: ...
description_label: &'static str
Text labeling the start of the description.
grouped_label: &'static str
Text labeling grouped commands, {grouped_label} {group_name}: ...
aliases_label: &'static str
Text labeling a command's alternative names (aliases).
guild_only_text: &'static str
Text specifying that a command is only usable in a guild.
checks_label: &'static str
Text labeling a command's names of checks.
dm_only_text: &'static str
Text specifying that a command is only usable in via DM.
dm_and_guild_text: &'static str
Text specifying that a command can be used via DM and in guilds.
available_text: &'static str
Text expressing that a command is available.
command_not_found_text: &'static str
Error-message once a command could not be found.
Output-example (without whitespace between both substitutions: {command_not_found_text}{command_name}
{command_name}
describes user's input as in: {prefix}help {command_name}
.
individual_command_tip: &'static str
Explains the user on how to use access a single command's details.
strikethrough_commands_tip_in_dm: Option<&'static str>
Explains reasoning behind strikethrough-commands, see fields requiring HelpBehaviour
for further information.
If HelpBehaviour::Strike
is unused, this field will evaluate to None
during creation
inside of the help macro.
Note: Text is only used in direct messages.
strikethrough_commands_tip_in_guild: Option<&'static str>
Explains reasoning behind strikethrough-commands, see fields requiring HelpBehaviour
for further information.
If HelpBehaviour::Strike
is unused, this field will evaluate to None
during creation
inside of the help macro.
Note: Text is only used in guilds.
group_prefix: &'static str
Announcing a group's prefix as in: {group_prefix} {prefix}.
lacking_role: HelpBehaviour
If a user lacks required roles, this will treat how these commands will be displayed.
lacking_permissions: HelpBehaviour
If a user lacks permissions, this will treat how these commands will be displayed.
lacking_ownership: HelpBehaviour
If a user lacks ownership, this will treat how these commands will be displayed.
wrong_channel: HelpBehaviour
If a user is using the help-command in a channel where a command is not available, this behaviour will be executed.
embed_error_colour: Colour
Colour help-embed will use upon encountering an error.
embed_success_colour: Colour
Colour help-embed will use if no error occurred.
max_levenshtein_distance: usize
If not 0, help will check whether a command is similar to searched named.
indention_prefix: &'static str
Help will use this as prefix to express how deeply nested a command or group is.
Trait Implementations
impl Clone for HelpOptions
[src]
fn clone(&self) -> HelpOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<HelpOptions> for HelpOptions
[src]
fn eq(&self, other: &HelpOptions) -> bool
[src]
fn ne(&self, other: &HelpOptions) -> bool
[src]
impl Debug for HelpOptions
[src]
Auto Trait Implementations
impl Sync for HelpOptions
impl Send for HelpOptions
impl Unpin for HelpOptions
impl RefUnwindSafe for HelpOptions
impl UnwindSafe for HelpOptions
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> DebugAny for T where
T: Any + Debug,
[src]
T: Any + Debug,
impl<T> CloneAny for T where
T: Clone + Any,
[src]
T: Clone + Any,
fn clone_any(&self) -> Box<dyn CloneAny + 'static>
[src]
fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send> where
T: Send,
[src]
T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync> where
T: Sync,
[src]
T: Sync,
fn clone_any_send_sync(&self) -> Box<dyn CloneAny + 'static + Send + Sync> where
T: Send + Sync,
[src]
T: Send + Sync,
impl<T> UnsafeAny for T where
T: Any,
T: Any,