Releases: baptiste0928/twilight-interactions
Releases · baptiste0928/twilight-interactions
v0.12.0
Added
- Support for autocomplete interactions with
AutocompleteValue
. - Added
max_length
andmax_length
attributes forString
fields.
Changed
- Upgraded to
twilight-model
0.12
v0.11.0
Added
- Support command localization with
name_localizations
anddesc_localizations
attributes. - Command permissions v2 with
default_permissions
anddm_permission
attributes.
Changed
- Upgraded to
twilight-model
0.11.0 - MSRV updated to 1.60
v0.10.1
v0.10.0
v0.9.1
v0.9.0
Changed
- Updated to
twilight-model
0.9. - Updated MSRV to 1.57 and to Edition 2021.
v0.8.1
Added
- A
value
method is generated when derivingCommandOption
for command option choices. CreateCommand::NAME
associated constant to get the name of the command.CommandInputData::parse_field
method to directly parse a field without command model.CommandInputData::focused
method to get the name of the focused field.- Implementation of
CommandModel
forVec<CommandDataOption>
andCommandOption
forCommandOptionValue
.
Changed
CommandModel
andCreateCommand
can be derived on unit structs.- Improved validation of command names.
Fixed
ParseError::EmptyOption
is 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
CommandModel
andCreateCommand
macros. - Command option settings like
max_value
are validated when parsing command.
Changed
- Updated to
twilight-model
0.8.0. CommandModel::from_interaction
now takes aCommandInputData
.- Internal types have been moved to a separate module.
- Improved documentation.
Removed
http
feature has been removed.
v0.7.2
Added
- New
autocomplete
,max_value
andmin_value
onCreateCommand
derive macro.
Changed
- Updated to
twilight-model
0.7.2.
v0.7.1
Added
- Support of command option choices with the
CommandOption
andCreateOption
traits. - A dummy implementation is generated in case of macro error to avoid additional "unimplemented trait" compilation errors
Changed
ApplicationCommandData
can be converted into a twilightCommand
usingFrom
.