Threads and V10!
Pre-release
Pre-release
Hikari 2.0.0.dev112 (2022-11-06)
Breaking Changes
-
Moved permission overwrite mapping and permission related methods from
GuildChannel
toPermissibleGuildChannel
. (#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. attachment
andattachments
in message edits now support passing anAttachment
object to keep existing attachments.replace_attachments
has been removed, as it is now the default.attachment
andattachments
now supportsNone
to replicate the behaviour of fully removing all attachments.
InteractionMessageBuilder.clear_attachments
has 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_counts
andwith_expiration
inRESTClient.fetch_invite
(#1330) - Support for including the
SUPPRESS_EMBEDS
flag while creating a message. (#1331) - Add
MANAGE_EVENTS
permission 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.UnrecognisedEntityError
when they encounter an unknown type. (#1337) - Fix deprecation warnings in CPython3.11 in
hikari.internal.ux
. (#1344)