| Modifier and Type | Method | Description |
|---|---|---|
void |
AbstractCommand.onCommand(CommandEvent event,
net.dv8tion.jda.core.entities.Member member,
net.dv8tion.jda.core.entities.TextChannel channel,
String[] args) |
This overrides the method declared in
ICommand. |
void |
AbstractHelpCommand.onCommand(CommandEvent event,
net.dv8tion.jda.core.entities.Member member,
net.dv8tion.jda.core.entities.TextChannel channel,
String[] args) |
This overwrites the method
onCommand from ICommand. |
void |
ICommand.onCommand(CommandEvent event,
net.dv8tion.jda.core.entities.Member member,
net.dv8tion.jda.core.entities.TextChannel channel,
String[] args) |
This method is called if someone calls a corresponding command label to this instance, so it works similar to an event method.
|
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.
|
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.
|
Copyright © 2018. All rights reserved.