Hikari 2.0.0.dev112 (2022-11-06)
Breaking Changes
-
Moved permission overwrite mapping and permission related methods from
GuildChanneltoPermissibleGuildChannel. (#811) -
Support v10 attachments edits
This includes breaking changes, features and things to look out for when editing messages:
- Modifying attachments in messages that contain embeds with any image attached to them now requires the images of that embed
image to be re-passed in the edit or they will be lost. attachmentandattachmentsin message edits now support passing anAttachmentobject to keep existing attachments.replace_attachmentshas been removed, as it is now the default.attachmentandattachmentsnow supportsNoneto replicate the behaviour of fully removing all attachments.
InteractionMessageBuilder.clear_attachmentshas been implemented to remove existing attachments from messages. (#1260)
- Modifying attachments in messages that contain embeds with any image attached to them now requires the images of that embed
Features
- Thread support for REST requests and gateway events. (#811)
- Startup and shutdown callbacks for the RESTBot interface/impl. (#999)
- Support specifying
with_countsandwith_expirationinRESTClient.fetch_invite(#1330) - Support for including the
SUPPRESS_EMBEDSflag while creating a message. (#1331) - Add
MANAGE_EVENTSpermission tohikari.Permissions(#1334)
Bugfixes
- Wrong typehint for
InviteGuild.features. (#1307) - Fix aiohttp error "charset must not be in content type" when using
InteractionServer(#1320) - The REST list methods (e.g.
fetch_channels) no-longer raisehikari.errors.UnrecognisedEntityErrorwhen they encounter an unknown type. (#1337) - Fix deprecation warnings in CPython3.11 in
hikari.internal.ux. (#1344)