Hikari 2.0.0.dev109 (2022-06-26)
Breaking Changes
- Removal of all application commands v1 related fields and endpoints.
- Discord has completely disabled some endpoints, so we unfortunately can't
deprecate them instead of removing them (#1148)
- Discord has completely disabled some endpoints, so we unfortunately can't
- Removed the
resolvedattribute fromAutocompleteInteractionas autocomplete interactions never have resolved objects. (#1152) buildmethods are now typed as returningMutableMapping[str, typing.Any]. (#1164)
Deprecation
messages.Mentionsobject deprecated- Alternatives can be found in the base message object (#1149)
Features
- Add
createmethod toCommandBuilder. (#1016) - Support for attachments in REST-based interaction responses. (#1048)
- Add option to disable automatic member chunking.
Added theauto_chunk_memberskwarg toGatewayBotandEventManagerImpl, which whenFalsewill disable automatic member chunking. (#1084) - Allow passing multiple event types to the listen decorator.
Parse union type hints for events if listen decorator is empty. (#1103) - Animated guild banner support. (#1116)
- Implement application commands permission v2.
- New
default_member_permissionsandis_dm_enabledrelated fields. - Added
hikari.events.application_events.ApplicationCommandPermissionsUpdate. - Added
APPLICATION_COMMAND_PERMISSION_UPDATEaudit log entry (#1148)
- New
Bugfixes
- Improved pyright support. (#1108)
RESTClientImpl.fetch_bansnow return aLazyIteratorto allow pagination of values. (#1119)- Fix unicode decode error caused by
latin-1encoding when sending the banner. (#1120) - Don't error on an out-of-spec HTTP status code (e.g one of Cloudflare's custom status codes).
HTTPResponseError.statusmay now be of typehttp.HTTPStatusorint. (#1121) - Fix name of polish locale (
hikari.Locale.OL->hikari.Locale.PL) (#1144) - Properly garbage collect message references in the cache
- Properly deserialize
PartialMessage.referenced_messageas a partial message (#1192)
- Properly deserialize