Skip to content

Releases: baptiste0928/twilight-interactions

v0.8.1

21 Dec 14:40

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

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

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

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.

v0.7.0

28 Oct 17:11

Choose a tag to compare

Added

  • Initial release of twilight-interactions and twilight-interactions-derive crates.