Releases: baptiste0928/twilight-interactions
Releases · baptiste0928/twilight-interactions
v0.8.1
Added
- A
valuemethod is generated when derivingCommandOptionfor command option choices. CreateCommand::NAMEassociated constant to get the name of the command.CommandInputData::parse_fieldmethod to directly parse a field without command model.CommandInputData::focusedmethod to get the name of the focused field.- Implementation of
CommandModelforVec<CommandDataOption>andCommandOptionforCommandOptionValue.
Changed
CommandModelandCreateCommandcan be derived on unit structs.- Improved validation of command names.
Fixed
ParseError::EmptyOptionis only returned when parsing subcommands.
This fixes command models without options or with only optional options.
v0.8.0
Added
- Subcommands and subcommand groups are supported by
CommandModelandCreateCommandmacros. - Command option settings like
max_valueare validated when parsing command.
Changed
- Updated to
twilight-model0.8.0. CommandModel::from_interactionnow takes aCommandInputData.- Internal types have been moved to a separate module.
- Improved documentation.
Removed
httpfeature has been removed.
v0.7.2
Added
- New
autocomplete,max_valueandmin_valueonCreateCommandderive macro.
Changed
- Updated to
twilight-model0.7.2.
v0.7.1
Added
- Support of command option choices with the
CommandOptionandCreateOptiontraits. - A dummy implementation is generated in case of macro error to avoid additional "unimplemented trait" compilation errors
Changed
ApplicationCommandDatacan be converted into a twilightCommandusingFrom.
v0.7.0
Added
- Initial release of
twilight-interactionsandtwilight-interactions-derivecrates.