From defaf781daf4d3ab2e45234196365d78b655d49f Mon Sep 17 00:00:00 2001 From: Abitofevrything Date: Sun, 10 Apr 2022 19:58:59 +0200 Subject: [PATCH] Release 4.1.0 --- CHANGELOG.md | 17 +++++++++++++++++ pubspec.yaml | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 106cb8e..56ae018 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,20 @@ +## 4.1.0 +__New features__: +- Support for autocompletion has been added. See `Converter.autocompleteCallback` and the `@Autocomplete(...)` annotation for more. +- Added the ability to allow only slash commands or disable them entirely. See `CommandType.def` and `CommandOptions.defaultCommandType` for more. +- Added `ChatCommand.argumentTypes`, which allows developers to access the argument types for a chat command callback. +- Added `Converter.processOptionCallback`, which allows developers to modify the builder generated for a command argument. +- Added `IntConverter`, `DoubleConverter` and `NumConverter` for converting numbers with custom bounds. These new classes allow you to specify a minimum and maximum value for an argument when used with `@UseConverter(...)`. +- Added `GUildChannelConverter` for converting more specific types of guild channels. + +__Bug fixes__: +- Fixed an issue with `IContext.getButtonPress` not behaving correectly when `authorOnly` or `timeout` was specified. +- Fixed the default converters for guild channels accepting all channels in the Discord UI even if they were not the correct type. + +__Miscellaneous__: +- Updated the command name validation regex. +- Bump `nyxx_interactions` to 4.1.0. + ## 4.0.0 __Breaking changes__: - `nyxx_interactions` has been upgraded to 4.0.0. diff --git a/pubspec.yaml b/pubspec.yaml index a3e1fde..c39b5ea 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: nyxx_commands -version: 4.0.0 +version: 4.1.0 description: A framework for easily creating slash commands and text commands for Discord using the nyxx library. homepage: https://github.com/nyxx-discord/nyxx_commands/blob/main/README.md