- 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
CommandSettings
methods from void toCommandSettings
to make fluent interface possible - Added method
setCustomPrefixes
inCommandSettings
to 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#respond
with 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
getCommandSettings
inCommandEvent
- Annotated
ICommand
as 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
AbstractCommand
with sub command system - Added configurable unknown command message
- Made certain getters of
CommandSettings
public - 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
CommandSettings
or 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
Command
inner class ofCommandEvent
, because it not really has a usage anywhere else - Added changelog (lul)
- Added proper Readme file
- Removed option
useHelpCommand
from theCommandSettings
constructor. 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_PREFIX
andCommandSettings.VALID_LABEL
- Cleaned some code in
CommandListener
- Added possibility to generate an automated help command
- Added methods in
CommandSettings
for the usage of aliases - Added default method
String info()
inICommand
- Changed
void onCommand
inICommand
: addedMember member
as parameter
- Changed structure of command parsing; added class
Command
- Removed
CommandHandler
andCommandContainer
- Made
CommandSetException
public - Added method
remove
toCommandSettings
- Added method
deactivate
toCommandSettings
; overall different structure than before - Changed
@NotNull
annotations to@Nonnull
annotations
- Added
CommandSetException
- Fixed multiple activation of
CommandSettings
- Improved command parsing in class
CommandContainer
- Added
@NotNull
annotations toCommandSettings
- Removed method
boolean canBeExecuted
fromICommand
- Fixed possibility for bots to execute commands
- Removed method
MessageEmbed info
fromICommand
- Created CommandAPI