Releases: EpokTarren/mashu
Releases · EpokTarren/mashu
v2.0.1
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.
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
, 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.
v1.0.1
v1.0.1
v1.0.0
Initial release