Skip to content

v2.0.0 discord.js v13 migration and slash command support.

Compare
Choose a tag to compare
@EpokTarren EpokTarren released this 24 Aug 15:23
· 23 commits to master since this release
f118621

v2.0.0 discord.js v13 migration and slash command support.

Added

  • SlashCommand support
    • MessageCommand for message only commands.
    • IntractableCommand for message or slash command support in the same file.
    • InteractionCommand for slash command only commands.
  • Messages now have an added args property which will always be a string array.
  • Command argument parsing for message commands with the same API as discord.js interactions.

Changed

  • BaseCommand should be replaced with MessageCommand, IntractableCommand, or InteractionCommand, depending on if a command is message only, message and interaction or only interaction based.
  • IntractableCommand, and InteractionCommand type functions don't get arguments passed in but IntractableCommand if the command invocation is a message args will be a property of the message.
  • Migrated to discord.js v13 this means Node.js 16.6.0 or newer is required.
  • Fixed bug where a non string description didn't throw an error.
  • User now needs to install @discordjs/builders @discordjs/rest discord-api-types in addiction to discord.js.