| Modifier and Type | Class | Description |
|---|---|---|
class |
AbstractCommand |
This abstract class is an alternative implementation of ICommand.
|
class |
AbstractHelpCommand |
A template for own help command implementations.
|
class |
DefaultHelpCommand |
The default implementation for AbstractHelpCommand.
|
| Modifier and Type | Method | Description |
|---|---|---|
ICommand |
CommandEvent.Command.getExecutor() |
Returns the
ICommand instance that executed this command. |
| Modifier and Type | Method | Description |
|---|---|---|
protected Map<String,ICommand> |
CommandSettings.getCommands() |
| Modifier and Type | Method | Description |
|---|---|---|
Set<String> |
CommandSettings.getLabels(ICommand command) |
Returns every registered label for an ICommand instance in an immutable Set.
|
abstract void |
AbstractHelpCommand.provideSpecificHelp(CommandEvent event,
String prefix,
ICommand command,
Set<String> labels) |
This method is called if someone calls the help command and provides a valid label as the first argument.
|
void |
DefaultHelpCommand.provideSpecificHelp(CommandEvent event,
String prefix,
ICommand command,
Set<String> labels) |
Shows the command info based on the method ICommand#info in an embed.
|
CommandSettings |
CommandSettings.put(ICommand executor,
String label) |
Use this method to add commands from your project.
|
CommandSettings |
CommandSettings.put(ICommand executor,
String... labels) |
Use this method to add commands with aliases.
|
CommandSettings |
CommandSettings.put(ICommand executor,
Collection<String> labels) |
Use this method to add commands with aliases from a Set.
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract void |
AbstractHelpCommand.provideGeneralHelp(CommandEvent event,
String prefix,
Map<String,ICommand> commands) |
This method is called if someone uses this command with no parameters or doesn't give a valid label as an argument.
|
void |
DefaultHelpCommand.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.
|
Copyright © 2018. All rights reserved.