Struct HelpOptions

Source
pub struct HelpOptions {
Show 29 fields pub names: &'static [&'static str], pub suggestion_text: &'static str, pub no_help_available_text: &'static str, pub usage_label: &'static str, pub usage_sample_label: &'static str, pub ungrouped_label: &'static str, pub description_label: &'static str, pub grouped_label: &'static str, pub aliases_label: &'static str, pub guild_only_text: &'static str, pub checks_label: &'static str, pub sub_commands_label: &'static str, pub dm_only_text: &'static str, pub dm_and_guild_text: &'static str, pub available_text: &'static str, pub command_not_found_text: &'static str, pub individual_command_tip: &'static str, pub strikethrough_commands_tip_in_dm: Option<&'static str>, pub strikethrough_commands_tip_in_guild: Option<&'static str>, pub group_prefix: &'static str, pub lacking_role: HelpBehaviour, pub lacking_permissions: HelpBehaviour, pub lacking_ownership: HelpBehaviour, pub lacking_conditions: HelpBehaviour, pub wrong_channel: HelpBehaviour, pub embed_error_colour: Colour, pub embed_success_colour: Colour, pub max_levenshtein_distance: usize, pub indention_prefix: &'static str,
}
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling
Available on crate features framework and standard_framework only.

Fields§

§names: &'static [&'static str]
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

Which names should the help command use for dispatching. Defaults to ["help"]

§suggestion_text: &'static str
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

Suggests a command’s name.

§no_help_available_text: &'static str
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

If no help is available, this text will be displayed.

§usage_label: &'static str
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

How to use a command, {usage_label}: {command_name} {args}

§usage_sample_label: &'static str
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

Actual sample label, {usage_sample_label}: {command_name} {args}

§ungrouped_label: &'static str
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

Text labeling ungrouped commands, {ungrouped_label}: ...

§description_label: &'static str
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

Text labeling the start of the description.

§grouped_label: &'static str
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

Text labeling grouped commands, {grouped_label} {group_name}: ...

§aliases_label: &'static str
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

Text labeling a command’s alternative names (aliases).

§guild_only_text: &'static str
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

Text specifying that a command is only usable in a guild.

§checks_label: &'static str
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

Text labelling a command’s names of checks.

§sub_commands_label: &'static str
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

Text labelling a command’s subcommands

§dm_only_text: &'static str
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

Text specifying that a command is only usable in via DM.

§dm_and_guild_text: &'static str
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

Text specifying that a command can be used via DM and in guilds.

§available_text: &'static str
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

Text expressing that a command is available.

§command_not_found_text: &'static str
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

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
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

Explains the user on how to use access a single command’s details.

§strikethrough_commands_tip_in_dm: Option<&'static str>
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

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>
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

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
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

Announcing a group’s prefix as in: {group_prefix} {prefix}.

§lacking_role: HelpBehaviour
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

If a user lacks required roles, this will treat how these commands will be displayed.

§lacking_permissions: HelpBehaviour
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

If a user lacks permissions, this will treat how these commands will be displayed.

§lacking_ownership: HelpBehaviour
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

If a user lacks ownership, this will treat how these commands will be displayed.

§lacking_conditions: HelpBehaviour
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

If conditions (of a check) may be lacking by the user, this will treat how these commands will be displayed.

§wrong_channel: HelpBehaviour
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

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
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

Colour help-embed will use upon encountering an error.

§embed_success_colour: Colour
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

Colour help-embed will use if no error occurred.

§max_levenshtein_distance: usize
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

If not 0, help will check whether a command is similar to searched named.

§indention_prefix: &'static str
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to poise for command handling

Help will use this as prefix to express how deeply nested a command or group is.

Trait Implementations§

Source§

impl Clone for HelpOptions

Source§

fn clone(&self) -> HelpOptions

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for HelpOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for HelpOptions

Source§

fn eq(&self, other: &HelpOptions) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for HelpOptions

Source§

impl StructuralPartialEq for HelpOptions

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneDebuggableStorage for T
where T: DebuggableStorage + Clone,

§

fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> CloneableStorage for T
where T: Any + Send + Sync + Clone,

§

fn clone_storage(&self) -> Box<dyn CloneableStorage>

§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> DebuggableStorage for T
where T: Any + Send + Sync + Debug,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T