ICommandpublic final class DefaultHelpCommand extends AbstractHelpCommand
AbstractHelpCommandDEFAULT_INFO| Constructor | Description |
|---|---|
DefaultHelpCommand() |
| Modifier and Type | Method | Description |
|---|---|---|
net.dv8tion.jda.core.entities.Message |
info(net.dv8tion.jda.core.entities.Member member,
String prefix,
Set<String> labels) |
Returns the default info for this command.
|
void |
provideGeneralHelp(CommandEvent event,
String prefix,
Map<String,ICommand> commands) |
Lists all commands along with the information that more help can be received by adding the optional label parameter.
|
void |
provideSpecificHelp(CommandEvent event,
String prefix,
ICommand command,
Set<String> labels) |
Shows the command info based on the method ICommand#info in an embed.
|
onCommandpublic void provideGeneralHelp(CommandEvent event, String prefix, Map<String,ICommand> commands)
provideGeneralHelp in class AbstractHelpCommandevent - the CommandEvent as for usual commands.prefix - The prefix of the guild this command was called on.commands - an unmodifiable Map that contains all the prefixes with their corresponding commands that are registered for these CommandSettings.public void provideSpecificHelp(CommandEvent event, String prefix, ICommand command, Set<String> labels)
provideSpecificHelp in class AbstractHelpCommandevent - the CommandEvent as for usual commands.prefix - The prefix of the guild this command was called on.command - The ICommand that the help was requested for.labels - All the labels that are associated with the ICommand instance.public net.dv8tion.jda.core.entities.Message info(net.dv8tion.jda.core.entities.Member member,
String prefix,
Set<String> labels)
member - The Member that called the command. Might be helpful to check for permissions or make mentions possible.prefix - The prefix of the guild the help command was called on.labels - The registered labels of this ICommand instance. Useful to display aliases.DefaultHelpCommand,
AbstractHelpCommand,
MessageBuilderCopyright © 2018. All rights reserved.