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

pub struct CreateHelpCommand(pub HelpOptions, pub HelpFunction);

Methods

impl CreateHelpCommand
[src]

Sets a message displaying if input could not be found but a similar command is available.

Note: {} will be substituted with the actual suggested command-name. Hence no {} results in no command-name.

Sets a message displaying if there is no help available.

Sets a label for usage of a command.

Sets a label for the usage examples of a command.

Sets a label for ungrouped-commands

Sets a label for grouped-commands.

Sets a label for aliases.

Sets a message displaying if a command is only available in guilds.

Sets a message displaying if a command is only available in direct messages (DMs);

Sets a message displaying if a command is available in guilds and DMs.

Sets a message displaying if a command is available to use.

Sets a message that will appear upon failing to find an individual command. As in: {prefix}help {command_name}, but a command or alias like {command_name} does not exist.

Note: {} will be substituted with the actual suggested command-name. Hence no {} results in no command-name.

Sets the message on top of the help-menu, informing the user how to obtain more information about a single command.

Sets how the group-prefix shall be labeled.

Sets how a command requiring roles, that a user is lacking, shall appear in the help-menu.

Sets how a command requiring permission, that a user is lacking, shall be appear in the help-menu.

Sets how a command requiring to be sent in either via DM or a guild should be treated in the help-menu.

Sets the tip (or legend) explaining why some commands are striked, given text will be used in guilds and direct messages.

By default this is Some(String) and the String is empty resulting in an automated substitution based on your HelpBehaviour-settings. If set to None, no tip will be given nor will it be substituted. If set to a non-empty Some(String), the String will be displayed as tip.

Note: CreateHelpCommand::striked_commands_tip_in_direct_message and CreateHelpCommand::striked_commands_tip_in_guild can specifically set this text for direct messages and guilds.

Sets the tip (or legend) explaining why some commands are striked, given text will be used in guilds.

By default this is Some(String) and the String is empty resulting in an automated substitution based on your HelpBehaviour-settings. If set to None, no tip will be given nor will it be substituted. If set to a non-empty Some(String), the String will be displayed as tip.

Sets the tip (or legend) explaining why some commands are striked, given text will be used in direct messages.

By default this is Some(String) and the String is empty resulting in an automated substitution based on your HelpBehaviour-settings. If set to None, no tip will be given nor will it be substituted. If set to a non-empty Some(String), the String will be displayed as tip.

Sets the colour for the embed if no error occurred.

Sets the colour for the embed if an error occurred.

Sets the maximum Levenshtein-distance to find similar commands.

Auto Trait Implementations

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> UnsafeAny for T where
    T: Any