Make help command use descriptions and usages
This commit is contained in:
@@ -48,6 +48,23 @@ public interface MessageCommand
|
||||
@NotNull
|
||||
CommandCategory getCategory();
|
||||
|
||||
/**
|
||||
* Say what this command does.
|
||||
*
|
||||
* @return a String explaining what this command does.
|
||||
*/
|
||||
@NotNull
|
||||
String getDescription();
|
||||
|
||||
/**
|
||||
* Say how people should use this command.
|
||||
*
|
||||
* @return a String explaining how to use the command, excluding the bot prefix and command name. Null if no parameter is needed
|
||||
*/
|
||||
@Nullable
|
||||
String getUsage();
|
||||
|
||||
|
||||
/**
|
||||
* Run the command logic by parsing the event and replying accordingly.
|
||||
*
|
||||
|
Reference in New Issue
Block a user