nyxx_commands 0.3.0
nyxx_commands: ^0.3.0 copied to clipboard
A framework for easily creating slash commands and text commands for Discord using the nyxx library.
0.3.0 #
New features:
- Checks now integrate with Discord's slash command permissions
- Checks can now be asynchronous
- Added
RoleCheck,UserCheckandGuildCheckthat represent the basic Discord slash command permissions: role restricted, user restricted and guild restricted (guild command) - Slash command arguments can have descriptions set with the
@Descriptiondecorator
Breaking changes:
- Checks are no longer a simple function
0.2.0 #
Breaking changes:
- Reorder
descriptionandexecuteparameters inCommand.textOnlyandCommand.slashOnlyconstructors. - Remove
syncDeletedoption fromBotOptionsas nyxx_interactions removes them on sync anyways.
New features:
- Add
send(MessageBuilder)andrespond(MessageBuilder)methods toContext - Add
childrenas an optional argument toCommandandGroupconstructor - Add
autoAcknowledgeInteractionsoption toBotOptionsto determine whether to automatically respond to interaction events - Commands can now restrict execution using checks
Bugfixes:
InteractionContext.respondwill 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
Contextas their first argument type
0.1.0 #
- Initial release