diff --git a/CHANGELOG.md b/CHANGELOG.md index b62581b7bc..63e156cdc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,37 @@ This file is updated every release with the use of `towncrier` from the fragment .. towncrier release notes start +Hikari 2.0.0.dev107 (2022-03-04) +================================ + +Features +-------- + +- Added a `total_length` function to `hikari.embeds.Embed` + - Takes into account the character length of the embed's title, description, fields (all field names and values), footer, and author combined. + - Useful for determining if the embed exceeds Discord's 6000 character limit. ([#796](https://github.com/hikari-py/hikari/issues/796)) +- Added attachment command option type support. ([#1015](https://github.com/hikari-py/hikari/issues/1015)) +- Add MESSAGE_CONTENT intent. ([#1021](https://github.com/hikari-py/hikari/issues/1021)) +- Custom substitutions can now be used in `hikari.internal.ux.print_banner`. ([#1022](https://github.com/hikari-py/hikari/issues/1022)) +- `get_guild()` is now available on `hikari.Member`. ([#1025](https://github.com/hikari-py/hikari/issues/1025)) +- The notorious "failed to communicate with server" log message is now a warning rather than an error. ([#1041](https://github.com/hikari-py/hikari/issues/1041)) +- `hikari.applications`, `hikari.files`, `hikari.snowflakes` and `hikari.undefined` are now all explicitly exported by `hikari.__init__`, allowing pyright to see them without a direct import. ([#1042](https://github.com/hikari-py/hikari/issues/1042)) + + +Bugfixes +-------- + +- Fix bucket lock not being released on errors while being acquired, which locked the bucket infinitely ([#841](https://github.com/hikari-py/hikari/issues/841)) +- `enable_signal_handlers` now only defaults to `True` when the run/start method is called in the main thread. + This avoids these functions from always raising when being run in a threaded environment as only the main thread can register signal handlers. ([#998](https://github.com/hikari-py/hikari/issues/998)) +- Sub-command options are now properly deserialized in the autocomplete flow to `AutocompleteInteractionOption` instead of `CommandInteractionOption`. ([#1012](https://github.com/hikari-py/hikari/issues/1012)) +- Attempt to reconnect on a gateway `TimeoutError`. ([#1014](https://github.com/hikari-py/hikari/issues/1014)) +- Properly close `GatewayBot` when not fully started. ([#1023](https://github.com/hikari-py/hikari/issues/1023)) +- The async context manager returned by `File.stream` now errors on enter if the target file doesn't exist to improve error handling when a file that doesn't exist is sent as an attachment. + + The multiprocessing file reader strategy now expands user relative (`~`) links (like the threaded strategy). ([#1046](https://github.com/hikari-py/hikari/issues/1046)) + + Hikari 2.0.0.dev106 (2022-02-03) ================================ diff --git a/changes/1012.bugfix.md b/changes/1012.bugfix.md deleted file mode 100644 index 7ea9e9f1e6..0000000000 --- a/changes/1012.bugfix.md +++ /dev/null @@ -1 +0,0 @@ -Sub-command options are now properly deserialized in the autocomplete flow to `AutocompleteInteractionOption` instead of `CommandInteractionOption`. diff --git a/changes/1014.bugfix.md b/changes/1014.bugfix.md deleted file mode 100644 index e516080c5a..0000000000 --- a/changes/1014.bugfix.md +++ /dev/null @@ -1 +0,0 @@ -Attempt to reconnect on a gateway `TimeoutError`. diff --git a/changes/1015.feature.md b/changes/1015.feature.md deleted file mode 100644 index 86e6fb839c..0000000000 --- a/changes/1015.feature.md +++ /dev/null @@ -1 +0,0 @@ -Added attachment command option type support. diff --git a/changes/1021.feature.md b/changes/1021.feature.md deleted file mode 100644 index 21ca311cd1..0000000000 --- a/changes/1021.feature.md +++ /dev/null @@ -1 +0,0 @@ -Add MESSAGE_CONTENT intent. diff --git a/changes/1022.feature.md b/changes/1022.feature.md deleted file mode 100644 index 4c98a0dec0..0000000000 --- a/changes/1022.feature.md +++ /dev/null @@ -1 +0,0 @@ -Custom substitutions can now be used in `hikari.internal.ux.print_banner`. diff --git a/changes/1023.bugfix.md b/changes/1023.bugfix.md deleted file mode 100644 index 64d6d3e49c..0000000000 --- a/changes/1023.bugfix.md +++ /dev/null @@ -1 +0,0 @@ -Properly close `GatewayBot` when not fully started. diff --git a/changes/1025.feature.md b/changes/1025.feature.md deleted file mode 100644 index e3d34ecacf..0000000000 --- a/changes/1025.feature.md +++ /dev/null @@ -1 +0,0 @@ -`get_guild()` is now available on `hikari.Member`. diff --git a/changes/1041.feature.md b/changes/1041.feature.md deleted file mode 100644 index ee23f87c63..0000000000 --- a/changes/1041.feature.md +++ /dev/null @@ -1 +0,0 @@ -The notorious "failed to communicate with server" log message is now a warning rather than an error. diff --git a/changes/1042.feature.md b/changes/1042.feature.md deleted file mode 100644 index 3a71eb719c..0000000000 --- a/changes/1042.feature.md +++ /dev/null @@ -1 +0,0 @@ -`hikari.applications`, `hikari.files`, `hikari.snowflakes` and `hikari.undefined` are now all explicitly exported by `hikari.__init__`, allowing pyright to see them without a direct import. diff --git a/changes/1046.bugfix.md b/changes/1046.bugfix.md deleted file mode 100644 index e4775646c4..0000000000 --- a/changes/1046.bugfix.md +++ /dev/null @@ -1,3 +0,0 @@ -The async context manager returned by `File.stream` now errors on enter if the target file doesn't exist to improve error handling when a file that doesn't exist is sent as an attachment. - -The multiprocessing file reader strategy now expands user relative (`~`) links (like the threaded strategy). diff --git a/changes/796.feature.md b/changes/796.feature.md deleted file mode 100644 index 6e79c53473..0000000000 --- a/changes/796.feature.md +++ /dev/null @@ -1,3 +0,0 @@ -Added a `total_length` function to `hikari.embeds.Embed` -- Takes into account the character length of the embed's title, description, fields (all field names and values), footer, and author combined. -- Useful for determining if the embed exceeds Discord's 6000 character limit. diff --git a/changes/841.bugfix.md b/changes/841.bugfix.md deleted file mode 100644 index 3bc02402a4..0000000000 --- a/changes/841.bugfix.md +++ /dev/null @@ -1 +0,0 @@ -Fix bucket lock not being released on errors while being acquired, which locked the bucket infinitely diff --git a/changes/998.bugfix.md b/changes/998.bugfix.md deleted file mode 100644 index 381ded4e64..0000000000 --- a/changes/998.bugfix.md +++ /dev/null @@ -1,2 +0,0 @@ -`enable_signal_handlers` now only defaults to `True` when the run/start method is called in the main thread. -This avoids these functions from always raising when being run in a threaded environment as only the main thread can register signal handlers.