Skip to content

Releases: minhtribui153/nocli-handler.js

v1.1.2

17 Sep 04:33
Compare
Choose a tag to compare

Edits:

  • Replaced featuresDir option from NoCliHandler.configuration with events
  • Added foldersOnly option to getAllFiles utility function
  • Refactored CommandHandler and NoCliHandler class

Updates:

  • Added isCommand and categories to CommandHandler
  • Added categoryName to Command (Which will be useful for help commands)
  • Added isEvent to EventHandler
  • Added PrefixHandler and EventHandler classes
  • Added prefix default command
  • Added Dynamic Validations (default and local) to events
  • Added Validation plugins (for users who want to create their own validations)
  • Refactored typings which will automatically be sorted on typings folder (won't affect your imports though)

Bug Fixes:

  • Added fix for disabledDefaultCommands and ICommand.delete causing all commands not to load when called

v1.1.1

13 Sep 23:21
Compare
Choose a tag to compare

Edits

  • Added String Types for ICommand.type
  • Edited option cooldowns as not required in ICommand
  • Added option instance to ICommand.callback
  • Added isAnAlias to Command class to prevent cluttering with original commands
  • Default commands for CommandHandler has been enabled
  • Added disabledDefaultCommands option to NoCliHandler
  • Added emojiConfig option, options option, and NoCliEmojiConfigOptions type to ICommand

Updates:

  • Added required permissions & roles MongoDB Schema
  • Added some default slash commands
  • Added MongoDBResult type and fixed bug "Early connection before MongoDB Instance returns a connection status"
  • Added handleCommandAutocomplete function
  • Added ChannelCommands, CustomCommands and DisabledCommands classes
  • Added function findCommand to SlashCommands