nyxx_commands 0.2.0 nyxx_commands: ^0.2.0 copied to clipboard
A framework for easily creating slash commands and text commands for Discord using the nyxx library.
0.2.0 #
Breaking changes:
- Reorder
description
andexecute
parameters inCommand.textOnly
andCommand.slashOnly
constructors. - Remove
syncDeleted
option fromBotOptions
as nyxx_interactions removes them on sync anyways.
New features:
- Add
send(MessageBuilder)
andrespond(MessageBuilder)
methods toContext
- Add
children
as an optional argument toCommand
andGroup
constructor - Add
autoAcknowledgeInteractions
option toBotOptions
to determine whether to automatically respond to interaction events - Commands can now restrict execution using checks
Bugfixes:
InteractionContext.respond
will no longer throw an error when responding immediately- Slash Commands can no longer have direct slash command children
- Errors emitted outside of argument parsing and callback execution are now correctly sent to
Bot.onCommandError
Miscellaneous:
- Text-only and slash-only commands can now have
Context
as their first argument type
0.1.0 #
- Initial release