Releases: hikari-py/hikari
Releases · hikari-py/hikari
2.5.0
2.5.0 (2025-10-31)
Breaking Changes
- Drop Python 3.9 support (#2576)
- Remove several previously deprecated functionality:
extparameter inmake_x_url()methods in favour offile_formatx_urlproperties in favour ofmake_x_url()methods (#2591)
Features
- Add preliminary support for Python 3.14 (#2220)
- Add various new compression support:
- ZSTD transport compression support (needs hikari to be installed with either
[speedups]or[zstd]) - ZLIB payload compression support (#2545)
- ZSTD transport compression support (needs hikari to be installed with either
- Add new edit own member arguments. (#2551)
- Slightly optimize buckets ratelimiting logic (#2556)
- Add pagination support for
fetch_thread_members(#2564) - Add
token_idfield tohikari.GatewayBot(#2572) - Add LATAM Spanish locale (#2577)
2.4.1
2.4.0
2.4.0 (2025-09-08)
Breaking Changes
- Remove
PREMIUM_REQUIREDresponse support- Use
PREMIUMbutton components instead (#2454)
- Use
Features
- Add
parent_idandlock_permissionstorest.reposition_channels(#2238) - Add support for fetching and editing guild onboarding (
rest.fetch_guild_onboarding,rest.edit_guild_onboarding) (#2337) - Add
PREMIUMbutton support (#2454) - Add
primary_guilduser feature. (#2469) - Add
InteractionCallbackResponseobject that gets returned in the initial response to an interaction (#2479) - Add
PIN_MESSAGESpermission. (#2498) - Add iterator pins feature. (#2501)
- Add
code_verifierfield toauthorize_access_tokenfor PKCE use-cases (#2510) - Further improve ratelimiting to track in-flight requests (#2515)
Bugfixes
- Always send
allowed_mentionswhen editing a message to match functionality that documentation mentions (#2447) - Improve ratelimit handling when starting bot in the middle of a ratelimit window (#2452)
- Fix
OAuth2AuthorizationToken.refresh_tokentypehint beingintinstead ofstr(#2493) - Properly handle ratelimit buckets with fixed periods (#2506)
fetch_guild_inviteswill now return a sequence of invites (no metadata) if you only have theVIEW_AUDIT_LOGpermission (#2509)
Documentation Improvements
- Improve documentation for
GuildReactionDeleteEmojiEventandDMReactionDeleteEmojiEvent(#2450)
2.3.5
2.3.4
2.3.4 (2025-06-24)
Features
- Add
THREAD_CREATED,THREAD_STARTER_MESSAGE,INTERACTION_PREMIUM_UPSELL,STAGE_START,STAGE_END,STAGE_SPEAKER,STAGE_TOPIC,GUILD_APPLICATION_PREMIUM_SUBSCRIPTION, andPURCHASE_NOTIFICATIONtoMessageTypeenum. (#2382) - Add
SOUNDBOARD_SOUND_CREATE,SOUNDBOARD_SOUND_UPDATE, andSOUNDBOARD_SOUND_CREATEtoAuditLogEventTypeenum. (#2384) - Re-export
hikari.impl.event_factoryas part ofhikari.impl(#2388) - Add naming to dispatch tasks to allow to identify them in the event loop (#2394)
- Allow setting HTTP concurrent connection limit through
HTTPSettings.connection_limit(#2395) - Add
HAS_THREADmember toMessageFlag. (#2398) - Add message forwarding support. (#2399)
- Add support for guild media channels. (#2409)
- Add reason to error log when hitting a subratelimit, if available (#2416)
Optimizations
- Optimize request flow (#2393)
- Sligly optimize memory usage when dispatching tasks (#2394)
- Switch ratelimiting logic to a sliding window implementation to better match Discord's side. This will allow maximum throughput that Discord would allow (#2427)
Bugfixes
- Fix typing inconsistency for
PartialInteraction.locale(#2401)
Documentation Improvements
2.3.3
2.3.3 (2025-05-18)
Features
- Add
startup_window_delayargument to.runand.startto customize the time in between startup windows for shards (#2369)
Optimizations
- Greatly optimize event managers memory management by avoiding unnecessary tasks creations and reducing lifetime of objects (#2368)
Bugfixes
- Fix error when attempting to stringify http request with a non-ascii character (#2365)
2.3.2
2.3.2 (2025-05-09)
Deprecation
- Deprecate all
x_urlproperties in favour ofmake_x_url()methods (#2338)
Features
- Added
rest.create_voice_messageto support sending voice messages. (#2251) - Add AWEBP support for asset URLs and increase sticker asset availability (#2338)
- Add
old_threadfield toGuildThreadUpdateEvent. (#2353) - Add reason parameter to the following endpoints:
delete_permission_overwritedelete_webhookdelete_invitereposition_channelsreposition_rolesdelete_rolecreate_stage_instanceedit_stage_instancedelete_stage_instance(#2354)
Optimizations
- Optimize reusing file resources when uploading repeated ones (#2336)
Bugfixes
2.3.1
2.3.0
2.3.0 (2025-04-22)
Breaking Changes
- Remove
GuildBuilderclass,RestClient.guild_builder()andRestClient.create_guild_from_template()due to Discord removing the feature for applications.- For more information, please see: https://discord.com/developers/docs/change-log#deprecating-guild-creation-by-apps (#2310)
Features
- Add components V2 (UIKit) support
- For more information, please see https://discord.com/developers/docs/components/overview (#2196)
- Add
Permissions.SEND_POLLSandPermissions.USE_EXTERNAL_APPS. (#2311) - Add the following values to UserFlag:
- SPAMMER
1 << 20 - PROVISIONAL_ACCOUNT
1 << 23 - QUARANTINED
1 << 44 - COLLABORATOR
1 << 50 - RESTRICTED_COLLABORATOR
1 << 51(#2314)
- SPAMMER
Bugfixes
- Add
approximate_user_install_countattribute toApplication. (#2303)
2.2.1
2.2.1 (2025-04-06)
Features
- Add polls support:
- New rest endpoints:
RESTClient.fetch_poll_voters,RESTClient.end_poll - New objects:
Poll,PollLayoutType,PollResult,PollAnswer,PollMedia - New builders:
PollBuilder,PollAnswerBuilder - New events:
BasePollVoteEvent,PollVoteCreateEvent,PollVoteDeleteEvent(#2219)
- New rest endpoints:
- Added more specialized interaction events
CommandInteractionCreateEvent,ComponentInteractionCreateEvent,AutocompleteInteractionCreateEventandModalInteractionCreateEventto improve developer experience (#2241) - Added support for guild specific member banners. (#2271)
- HTTP interaction handlers can return
Noneto indicate a response was/will be sent using REST instead. (#2280) - Added support for guild incidents.
- New object
GuildIncidentsas an attribute onGuild. - New property
invites_disabledadded toGuildto ease the confusion on the independentinvites_disabled_untilincident action andINVITES_DISABLEDguild feature. - New guild function
set_incident_actionsand rest functionset_guild_incident_actions. (#2289)
- New object
- Added support for global and guild specific avatar decorations.
- New
AvatarDecorationclass. - New optional
avatar_decoration,display_avatar_decoration, andguild_avatar_decorationattributes onUserandMemberas applicable. (#2295)
- New
Optimizations
- Improve protocol checking speed. (#2252)
Bugfixes
- Add in the missing
hikari.api.InteractionMessageBuilder.clear_components,hikari.api.InteractionMessageBuilder.clear_embedsand abstract methods + enforce using@typing_extensions.overridewithin the library. (#2244)
Documentation Improvements
- Fix TOC jumping around when scrolling (#2255)