mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-03-29 23:02:49 +00:00
added conventions for templated commands, to reduce the amount of necessary configuration
added an exception, in case the command was missing the correct types of parameters (channel is required, no channel was found) added fix text to exception handler, in case the message of an exception is null fixed off-by-one error when searching the missing parameter changed supported chanel from guildChannel to textChannel for posttarget added slowmode command
This commit is contained in:
@@ -7,6 +7,5 @@ import lombok.Getter;
|
||||
public class HelpInfo {
|
||||
private String usage;
|
||||
private String longHelp;
|
||||
private String longHelpTemplate;
|
||||
private String usageTemplate;
|
||||
private boolean templated;
|
||||
}
|
||||
|
||||
@@ -13,9 +13,9 @@ public class CommandConfiguration {
|
||||
private String name;
|
||||
private String module;
|
||||
private String description;
|
||||
private String descriptionTemplate;
|
||||
private List<Parameter> parameters;
|
||||
private boolean causesReaction;
|
||||
private boolean templated;
|
||||
private HelpInfo help;
|
||||
|
||||
public int getNecessaryParameterCount(){
|
||||
|
||||
Reference in New Issue
Block a user