All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Slash command improvements.
- When testing commands, you may set
process.env.MASHUDEBUGGUILD
so that commands are only registered in your test guild.
- Registering slash commands no longer needs a token passed in.
- @discordjs/builders, @discordjs/rest, and discord-api-types are no longer required.
- Superfluous console logs when each command loads.
discord.js v13 migration and slash command support.
- 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.
- BaseCommand should be replaced with
MessageCommand
,IntractableCommand
, orInteractionCommand
, depending on if a command is message only, message and interaction or only interaction based. IntractableCommand
, andInteractionCommand
type functions don't get arguments passed in butIntractableCommand
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.
- TSDoc annotations
- Documentation links no longer include leading
/classes/
or/interfaces/
. - Documentation now links to the license file in the repository.
- Fix non relative links being mangled.
- Link to documentation in readme.
- Updated the spelling of typescript to TypeScript.
- Command reloading now does not error because of duplicate names.
- Reload now responds with "Unable to reload command." if an owner reloads a command it cannot reload or that does not exist.
- Fix npx script not working.
Initial release.