[][src]Struct serenity::framework::standard::HelpOptions

pub struct HelpOptions {
    pub suggestion_text: String,
    pub no_help_available_text: String,
    pub usage_label: String,
    pub usage_sample_label: String,
    pub ungrouped_label: String,
    pub description_label: String,
    pub grouped_label: String,
    pub aliases_label: String,
    pub guild_only_text: String,
    pub dm_only_text: String,
    pub dm_and_guild_text: String,
    pub available_text: String,
    pub command_not_found_text: String,
    pub individual_command_tip: String,
    pub striked_commands_tip_in_dm: Option<String>,
    pub striked_commands_tip_in_guild: Option<String>,
    pub group_prefix: String,
    pub lacking_role: HelpBehaviour,
    pub lacking_permissions: HelpBehaviour,
    pub wrong_channel: HelpBehaviour,
    pub embed_error_colour: Colour,
    pub embed_success_colour: Colour,
    pub max_levenshtein_distance: usize,
}

Fields

Suggests a command's name.

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

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

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

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

Text labeling the start of the description.

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

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

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

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

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

Text expressing that a command is available.

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}.

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

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 CreateHelpCommand.

Note: Text is only used in direct messages.

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 CreateHelpCommand.

Note: Text is only used in guilds.

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

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

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

If a user is using the help-command in a channel where a command is not available, this behaviour will be executed.

Colour help-embed will use upon encountering an error.

Colour help-embed will use if no error occurred.

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

Trait Implementations

impl Default for HelpOptions
[src]

Returns the "default value" for a type. Read more

impl Debug for HelpOptions
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for HelpOptions

impl Sync for HelpOptions

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Erased for T

impl<T> Typeable for T where
    T: Any

Get the TypeId of this object.

impl<T> DebugAny for T where
    T: Any + Debug
[src]

impl<T> UnsafeAny for T where
    T: Any