Skip to content

v3.0.0

Choose a tag to compare

@some-boi some-boi released this 28 Jul 18:10
· 81 commits to master since this release
487f28b

Breaking Changes

  • Deleted MessageCommand and SlashCommand types as they got replaced by a type that's merging them which is Command
  • Removed all create command functions associated with MessageCommand and SlashCommand and their subcommands as well and was replaced to what favors Command
  • Added a new options system that will support both message and slash commands
  • Removed the message and args arguments to the execute function for message commands, and the data argument for slash commands and got replaced with ctx argument with type Context
  • Subcommands is only supported in slash for now

Added

  • Added an option to automatically load command and event files
  • Added quoted argument support to message commands
  • Added Context type to support the new argument system and to be useable in both message and slash commands
  • Added commandNotFound event that triggers whenever a message command is not found on a message starting with the bot prefix
  • Added AmethystEvents that will be used for the amethyst plugin
  • Added AmethystEvent that can be used in a file that will be loaded through the bot options
  • Added Command that can support both message and slash commands and can be used in command files that will be loaded through the command options
  • Various bug fixes

Removed

  • Removed the old argument system in favor of the new one
  • Removed the SlashCommand and MessageCommand types and their subcommand types as well