Skip to content

2.2.1

Compare
Choose a tag to compare
@davfsa davfsa released this 06 Apr 17:31
· 164 commits to master since this release
1d6d244

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)
  • Added more specialized interaction events CommandInteractionCreateEvent, ComponentInteractionCreateEvent, AutocompleteInteractionCreateEvent and ModalInteractionCreateEvent to improve developer experience (#2241)
  • Added support for guild specific member banners. (#2271)
  • HTTP interaction handlers can return None to indicate a response was/will be sent using REST instead. (#2280)
  • Added support for guild incidents.
    • New object GuildIncidents as an attribute on Guild.
    • New property invites_disabled added to Guild to ease the confusion on the independent invites_disabled_until incident action and INVITES_DISABLED guild feature.
    • New guild function set_incident_actions and rest function set_guild_incident_actions. (#2289)
  • Added support for global and guild specific avatar decorations.
    • New AvatarDecoration class.
    • New optional avatar_decoration, display_avatar_decoration, and guild_avatar_decoration attributes on User and Member as applicable. (#2295)

Optimizations

  • Improve protocol checking speed. (#2252)

Bugfixes

  • Add in the missing hikari.api.InteractionMessageBuilder.clear_components, hikari.api.InteractionMessageBuilder.clear_embeds and abstract methods + enforce using @typing_extensions.override within the library. (#2244)

Documentation Improvements

  • Fix TOC jumping around when scrolling (#2255)