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)