This repository has been archived by the owner on Dec 2, 2023. It is now read-only.
Releases: GRZ4NA/CommandBot
Releases · GRZ4NA/CommandBot
CommandBot 4.0.0-beta3
Changes and improvements
- integrated permissions system to a new CommandPermissions class
- added JSDoc to some properties (mainly in BaseCommand, ChatCommand and CommandManager)
- changed get method on CommandManager to not use overlaps
CommandBot 4.0.0-beta2
Changes and improvements
- added PrefixManager to set prefix for each server individually
- added dm property to ChatCommand and ContextMenuCommand to block command execution from Discord private messages
CommandBot 4.0.0-beta1
Changes and improvements
- all command classes have been removed from package export
- changed the add method on CommandManager to accept type and options instead of command class instance
- all command objects now have a manager property which stores a CommandManager that this command is registered in
- added support for subcommands and subcommandgroups
- created commandSeparator property as a way to use subcommands with prefixes
- added more method overlaps
- fixed some bugs
CommandBot 4.0.0-alpha2
Changes and improvements
- fixed a security issue that allowed to bypass guild restrictions
- added new methods to CommandManager making it simpler to manage commands on the Discord API
- getApi
- listApi
- getIdApi
- created overlaps for ObjectID.prototype.toObject method
CommandBot 4.0.0-alpha1
Changes and new features
- refactored and rewritten many parts of the code
- added support for context menu interactions (new class ContextMenuCommand)
- added method overlaps
- overhauled the command parameter system to make it simpler (command arguments are now accessible through the Map object)
- updated dependencies
- modified string checkers to use regular expressions
Coming soon to 4.0.0
- support for command groups and sub commands
Known issues
- JSDoc comments are missing or not accurate
- no README for version 4
Compatibility
- Command class has been renamed to ChatCommand
- commands now use JavaScript maps to retrieve arguments
- a ChatCommand object is no langer passed as a context (this) to a command function
- there is no option to fetch the full parameter object
CommandBot 3.2.0-beta1
Changes and improvements
- replaced the getList() method with list property (this time using accessors)
- fixed "unknown" type errors
IMPORTANT! Version 3.2.0 will become version 4.0.0 that will include support for command groups and context menu interactions
CommandBot 3.1.1
Changes and improvements
- replaced list property with getList method to improve safety (CommandManager)
- added readonly keywords to prevent unwanted modifications
COMPATIBILITY WARNING! If you have used the list property before, you will have to edit your code.
CommandBot 3.1.0
New features
- added the ability to hide details in info messages
- added the ability to set separated timeouts to delete info messages (interaction replies are also being affected now)
- added new fields in help message (slash command, command scope)
- every help message now displays commands that are available to specific server
- created new JSDoc comments
- npm package now exports a lot more types and interfaces
CommandBot 3.1.0-beta1
New features
- added the ability to hide details in info messages
- added the ability to set separated timeouts to delete info messages (interaction replies are also being affected now)
- added new fields in help message (slash command, command scope)
- every help message now displays commands that are available
- fixed argumentSeparator param in JSDoc
Also coming in this 3.1.0
- more JSDoc updates
CommandBot 3.0.0
New features
- added the support for slash commands
- added command parameters
- created new documentation
- added guild specific commands
- added the ability to use only slash commands
- added new SUCCESS system message
- added a function to fetch parameter values
- created a lot of new types, classes etc.
- added new exports
Changes since 3.0.0-rc5
- added strict guild and slash command support checking
- changed argumentSeparator name to parameterSeparator
- separated registering process to a method
- simplified choices in parameters
- added reply checking to command execution procedure
- removed automatic logging error to console
- fixed an error with registering guild-specific slash commands
- added the ability to hide help message from the list
Compatibility
There are a lot of breaking changes in this version. In order to upgrade from version 2.0.0, you will have to make major changes in your code.
Known issues
- some JSDoc comments are not fully accurate (please use README.md or TypeScript autocompletion)
Coming in 3.1.0
- server-specific help messages