Log of changes for zephyrus
crate, changes in between versions will be documented here.
- Framework can now have custom return types from commands
- Created usage examples
- Changed Parse trait signature
- Implemented parse for Id
- Now a mutable reference for an interaction can be obtained using SlashContext::interaction_mut()
- Implemented Parse for Attachment, User and Role
- Created Modal trait
- Now context can send modals directly
- Created Modal derive macro to create modals directly
- Updated twilight dependencies to 0.15
- Now modal derive requires to specify attributes inside a modal one: #[modal(...)]
- Now parse derive requires to specify attributes inside a parse one: #[parse(...)]
- Moved to
darling
crate to create macros - Added support for
chat
andmessage
commands - Added
#[only_guilds]
and#[nsfw]
attribute for commands - Deprecated
SlashContext#acknowledge
in favor ofSlashContext#defer
- Added
Framework#twilight_commands
to get a serializable representation of registered commands (Carter at #9 & #10)
- Use typed errors
- Added localizations for command both commands and it's attributes
- Allow a
#[skip]
attribute for chat command arguments