- Updated to JDA version 3.7.1_387
- Adjusted cooldown system: it is now configurable whether the cooldown will reset for each command execution attempt
- Deprecated help label methods: They will be removed in the near future as the help label system is merged with the normal command system
- Changed return type of some
CommandSettingsmethods from void toCommandSettingsto make fluent interface possible - Added method
setCustomPrefixesinCommandSettingsto bulk add custom prefixes for better performance - Deprecated
CommandEvent.Command#getJoinedArgs(int)- it will be removed in the near future, there are better methods now. - Added getFirstMention-methods to CommandEvent
- Added method
CommandEvent#respondwith overloads - Improved Parsing in
CommandEvent.Command - Added method
CommandSettings#getLabels(ICommand)to get a Set of labels for a specific command - Added more fields to
CommandEvent.Command - Added method
isBlacklisted(long)toCommandSettings - Added classes AbstractHelpCommand and DefaultHelpCommand
- Added method
getCommandSettingsinCommandEvent - Annotated
ICommandas aFunctionalInterface - Cleaned
CommandListener - Deprecated method
String info(Member)inICommand; New method isMessage info(Member, String, Set<String>)because it is more flexible. - Added annotation
SubCommand - Added class
AbstractCommandwith sub command system - Added configurable unknown command message
- Made certain getters of
CommandSettingspublic - Improved documentation and readme
- Changed setCooldown-method's return to
this - Added possibility to change help labels (by clearing them or removing specific ones)
- Added possibility to clear all commands
- Added possibility to set the embed color for the help command with
CommandSettings#setHelpCommandColor(Color) - Added methods to remove Collections of labels from the commands
- Added methods to add Collections of labels to the commands
- Added public Getters for the registered labels, help labels and the boolean
activated - Added first steps for logging
- Changed the split regex for arguments from " " to "\s+" (it doesn't matter how many spaces there are now)
- Changed the help command listing type
- Added some possibly-helpful methods to class
Command, such as joining arguments - Added channel blacklist
- Fixed an issue where help labels case sensitivity ignored whether you would activate
labelIgnoreCase - Cleaned some code and fixed some minor bugs
- Changed parameters of info-method from Guild to Member
- Added possibility to set command cooldown (either in the constructor of
CommandSettingsor in its setter)
- Added permissions check before printing help messages
- Added argument to
ICommand-methodString info()- the guild (to make it possible to get the custom prefix) - Made class
Commandinner class ofCommandEvent, because it not really has a usage anywhere else - Added changelog (lul)
- Added proper Readme file
- Removed option
useHelpCommandfrom theCommandSettingsconstructor. If you want to use the help command, simply set your help labels.
- Added Maven support
- Added support for guild-specific prefixes
- Added support for JDA and ShardManager
- Fixed problems with regex patterns and added
CommandSettings.VALID_PREFIXandCommandSettings.VALID_LABEL - Cleaned some code in
CommandListener
- Added possibility to generate an automated help command
- Added methods in
CommandSettingsfor the usage of aliases - Added default method
String info()inICommand - Changed
void onCommandinICommand: addedMember memberas parameter
- Changed structure of command parsing; added class
Command - Removed
CommandHandlerandCommandContainer - Made
CommandSetExceptionpublic - Added method
removetoCommandSettings - Added method
deactivatetoCommandSettings; overall different structure than before - Changed
@NotNullannotations to@Nonnullannotations
- Added
CommandSetException - Fixed multiple activation of
CommandSettings - Improved command parsing in class
CommandContainer
- Added
@NotNullannotations toCommandSettings
- Removed method
boolean canBeExecutedfromICommand - Fixed possibility for bots to execute commands
- Removed method
MessageEmbed infofromICommand
- Created CommandAPI