Skip to content

Releases: EpokTarren/mashu

v2.0.1

28 Oct 16:14
v2.0.1
14d28f7
Compare
Choose a tag to compare

Slash command improvements.

Added

  • When testing commands, you may set process.env.MASHUDEBUGGUILD so that commands are only registered in your test guild.

Changed

  • Registering slash commands no longer needs a token passed in.
  • @discordjs/builders, @discordjs/rest, and discord-api-types are no longer required.

Removed

  • Superfluous console logs when each command loads.

Full Changelog: v2.0.0...v2.0.1

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

24 Aug 15:23
f118621
Compare
Choose a tag to compare

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.

v1.0.1

15 Apr 14:38
Compare
Choose a tag to compare
v1.0.1

v1.0.0

10 Apr 18:45
Compare
Choose a tag to compare

Initial release