All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.16.0-rc.1 - 2024-05-16
- A basic example bot implementation has been added in the
examples
directory of the repository. - Localizations are now handled by the
DescLocalizations
andNameLocalizations
structs.
- Updated to
twilight-model
0.16.0-rc.1 (@fdnt7) - Localization functions now return
DescLocalizations
orNameLocalizations
. desc
should not be provided anymore ifdesc_localizations
is provided.- Various improvements to the documentation.
- Improved macro error messages.
0.15.2 - 2023-06-23
- Subcommands enums now support
Box
ed variants to avoid large enums. ResolvedMentionable
type can be used to resolve a mentionable to either a user or a role.
- Strings are now trimmed in macro attributes to match Discord's behavior.
- Bumped MSRV to 1.67.
0.15.1 - 2023-03-26
- Attribute parameters names are now correctly validated. (#21)
- Updated to
syn
2. - Error messages are now in lowercase to match compiler errors.
0.15.0 - 2023-02-07
- Updated to
twilight-model
0.15.0. (@randomairborne)
0.14.4 - 2023-01-14
GuildDirectory
andGuildForum
channel types. (@CircuitSacul)
0.14.3 - 2023-01-08
- Support age-restricted commands with the
nsfw
attribute.
- Fixed compilation errors with
twilight-model
0.14.1 and above.
0.14.2 - 2022-11-27
- Use new
ChannelType
variant names.
0.14.1 - 2022-11-21
- Set
required
toNone
on subcommand and subcommand group options.
0.14.0 - 2022-11-16
- Upgraded to
twilight-model
0.14. - MSRV bumped to 1.64.
0.13.0 - 2022-08-15
- Upgraded to
twilight-model
0.13. - Most types exported by this crate do not longer implement
Eq
.
Number
type has been removed in twilight-model, usef64
instead.
0.12.0 - 2022-07-17
- Support for autocomplete interactions with
AutocompleteValue
. - Added
max_length
andmax_length
attributes forString
fields.
- Upgraded to
twilight-model
0.12
0.11.0 - 2022-05-16
- Support command localization with
name_localizations
anddesc_localizations
attributes. - Command permissions v2 with
default_permissions
anddm_permission
attributes.
- Upgraded to
twilight-model
0.11.0 - MSRV updated to 1.60
0.10.1 - 2022-03-15
- Allow
CommandModel
andCreateCommand
types to have generics (@MaxOhn) - Implement
CommandOption
&CreateOption
forCow<'_, str>
(@MaxOhn)
0.10.0 - 2022-03-13
- Upgraded to
twilight-model
0.10.0
- Autocomplete interactions parsing has been removed. See #9.
0.9.1 - 2022-03-09
- Implemented
Attachment
command option type. (by @Lyssieth) command::internal
is now hidden from the documentation.
0.9.0 - 2022-01-24
- Updated to
twilight-model
0.9. - Updated MSRV to 1.57 and to Edition 2021.
0.8.1 - 2021-12-21
- 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
.
CommandModel
andCreateCommand
can be derived on unit structs.- Improved validation of command names.
ParseError::EmptyOption
is only returned when parsing subcommands. This fixes command models without options or with only optional options.
0.8.0 - 2021-12-12
- Subcommands and subcommand groups are supported by
CommandModel
andCreateCommand
macros. - Command option settings like
max_value
are validated when parsing command.
- Updated to
twilight-model
0.8.0. CommandModel::from_interaction
now takes aCommandInputData
.- Internal types have been moved to a separate module.
- Improved documentation.
http
feature has been removed.
0.7.2 - 2021-11-23
- New
autocomplete
,max_value
andmin_value
onCreateCommand
derive macro.
- Updated to
twilight-model
0.7.2.
0.7.1 - 2021-11-10
- 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.
ApplicationCommandData
can be converted into a twilightCommand
usingFrom
.
0.7.0 - 2021-10-28
- Initial release of
twilight-interactions
andtwilight-interactions-derive
crates.