Skip to content

Releases: baptiste0928/twilight-interactions

v0.12.0

17 Jul 09:24
Compare
Choose a tag to compare

Added

  • Support for autocomplete interactions with AutocompleteValue.
  • Added max_length and max_length attributes for String fields.

Changed

  • Upgraded to twilight-model 0.12

v0.11.0

16 May 19:18
Compare
Choose a tag to compare

Added

  • Support command localization with name_localizations and desc_localizations attributes.
  • Command permissions v2 with default_permissions and dm_permission attributes.

Changed

  • Upgraded to twilight-model 0.11.0
  • MSRV updated to 1.60

v0.10.1

15 Apr 18:34
Compare
Choose a tag to compare

Added

  • Allow CommandModel and CreateCommand types to have generics (@MaxOhn)
  • Implement CommandOption & CreateOption for Cow<'_, str> (@MaxOhn)

v0.10.0

13 Mar 16:15
Compare
Choose a tag to compare

Changed

  • Upgraded to twilight-model 0.10.0 (@lyssieth)

Removed

  • Autocomplete interactions parsing has been removed. See #9.

v0.9.1

09 Mar 19:05
Compare
Choose a tag to compare

Changed

  • Implemented Attachment command option type. (by @lyssieth)
  • command::internal is now hidden from the documentation.

v0.9.0

24 Jan 08:39
Compare
Choose a tag to compare

Changed

  • Updated to twilight-model 0.9.
  • Updated MSRV to 1.57 and to Edition 2021.

v0.8.1

21 Dec 14:40
Compare
Choose a tag to compare

Added

  • A value method is generated when deriving CommandOption 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 for Vec<CommandDataOption> and CommandOption for CommandOptionValue.

Changed

  • CommandModel and CreateCommand 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

12 Dec 15:47
Compare
Choose a tag to compare

Added

  • Subcommands and subcommand groups are supported by CommandModel and CreateCommand 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 a CommandInputData.
  • Internal types have been moved to a separate module.
  • Improved documentation.

Removed

  • http feature has been removed.

v0.7.2

23 Nov 15:22
Compare
Choose a tag to compare

Added

  • New autocomplete, max_value and min_value on CreateCommand derive macro.

Changed

  • Updated to twilight-model 0.7.2.

v0.7.1

10 Nov 17:44
Compare
Choose a tag to compare

Added

  • Support of command option choices with the CommandOption and CreateOption 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 twilight Command using From.