Make help command use descriptions and usages

This commit is contained in:
2022-12-20 17:51:28 +01:00
parent e08fefbda3
commit 496304c2c3
15 changed files with 258 additions and 13 deletions

View File

@@ -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.
*