Releases: hikari-py/hikari
Releases · hikari-py/hikari
2.1.0
2.1.0 (2024-09-25)
Breaking Changes
VoiceState.member
can now beNone
in cases where Discord doesn't send the relevant information (#2038)
Features
- Add the optional audit log
reason
argument tohikari.api.rest.RESTClient.delete_channel
and
hikari.impl.rest.RESTClientImpl.delete_channel
, the same way it already exists for e.g.
edit_channel
(#2058)
Bugfixes
2.0.0
2.0.0 (2024-08-28)
Breaking Changes
- Drop Python 3.8 support. (#2008)
Features
- Implement stage instances (#1725)
- Add Python 3.13 support (#1793)
- Add
title
anddescription
fields toAttachment
. (#1945) - Add
display_name
toPartialUser
(#1951) - Remove
Optional
type hint fromCommandInteraction.options
- it will now always be an empty sequence when not provided. (#1965) - Application-bound emojis API support. (#1990)
- Add
Member.guild_flag
and matchingGuildMemberFlags
enum. (#2004) - Add
Message.thread
field. (#2012) - Add new voice endpoints (
fetch_my_voice_state
andfetch_voice_state
) (#2016) - Add
fetch_role
method toRESTClient
(#2020)
Bugfixes
-
Fix incorrect cleanup when failing to create request with a web reader (#1946)
-
Fix serializing JSON dicts with enum values as keys.
-
Use Discord Media Proxy instead of CDN for animated stickers urls (#1982)
-
Use correct URL route for scheduled event covers. (#1983)
-
Perform proper comparison when checking
CustomEmoji
againstKnownCustomEmoji
. (#1986) -
Add
NITRO_BASIC
attribute toPremiumType
(#1988) -
Fix incorrectly deserialized field
type
inChannelOverwriteEntryInfo
(#1993) -
Add missing
AuditLogChangeKey.COMMUNICATION_DISABLED_UNTIL
and matching key deserialization (#1996)
2.0.0.dev126
2.0.0.dev126 (2024-06-20)
Features
- Add
registered_guild_id
field toBaseCommandInteraction
(#1930) - Add
clear_fields()
method toEmbed
(#1933) - Add payload to deserialization error to make it easier to diagnose (#1943)
Bugfixes
- Fix incorrect form uploads with transport sensitive content (#1909)
Documentation Improvements
2.0.0.dev125
2.0.0.dev125 (2024-04-28)
Features
- Add monetization support. (#1803)
- Add missing link properties
- Add
message_link
property toMessageReference
- Add
channel_link
property toMessageReference
(#1877)
- Add
- Add missing
video_quality_mode
field toGuildStageChannel
(#1891) - Optimize gateway transport
- Merge cold path for zlib compression into main path to avoid additional call
- Handle data in
bytes
, rather than instr
to make good use of speedups (similar toRESTClient
) (#1898)
Bugfixes
2.0.0.dev124
2.0.0.dev124 (2024-04-07)
Features
- Improve
Emoji.parse
typing to make it more explicit (#1870) - Add ability to edit own user banner (#1871)
Bugfixes
- Fix incorrectly formatted error strings (#1866)
- Properly handle initial opcode as being RECONNECT (7) (#1867)
Documentation Improvements
- Replace mentions of
PRIVATE_MESSAGES
withDM_MESSAGES
(#1874)
2.0.0.dev123
2.0.0.dev123 (2024-03-31)
Breaking Changes
- Remove previously deprecated
Permissions.MANAGE_EMOJIS_AND_STICKERS
(#1762)
Features
- Allow subscribing to generic events (#1814)
- Allow changing guild features (community, etc.) (#1828)
- Improve embed parameters typing (#1841)
Bugfixes
- Fix
CommandInteractionOption.value
typehint not includingfloat
(#1805) Member.joined_at
is now nullable due to breaking API change- This will be received on guest members with temporary membership (#1812)
- Shard rate-limiters are now reset per websocket connection, avoiding a rare issue where a persistent network issue could allow the shard to be rate-limited (#1813)
Documentation Improvements
- Switch documentation to mkdocs (#1810)
2.0.0.dev122
2.0.0.dev122 (2023-11-18)
Deprecation
- Deprecate
Permissions.MANAGE_EMOJIS_AND_STICKERS
in favour ofPermissions.MANAGE_GUILD_EXPREASSIONS
(#1758)
Features
- Add Python 3.12 support. (#1357)
- Allow class listeners (#1661)
- Add missing
clear_x
methods toInteractionMessageBuilder
- This brings the functionality more in-line with other message edit APIs (#1740)
- Add missing permissions (#1758)
Bugfixes
- Fix optional connection "revoked" field KeyError when fetching connections. (#1720)
- Ensure shard connect and disconnect always get sent in pairs and properly waited for (#1744)
- Improve handing of force exiting a bot (double interrupt)
- Improve exception message
- Reset signal handlers to original ones after no longer capturing signals (#1745)
2.0.0.dev121
2.0.0.dev121 (2023-09-10)
Features
- Add
approximate_member_count
andapproximate_presence_count
toOwnGuild
. (#1659) - Add
CacheSettings.only_my_member
to only cache the bot member. (#1679) - Bots can now utilize
Activity.state
- When used with
type
set toActivityType.CUSTOM
, it will show as the text for the custom status.
Syntactic sugar also exists to support simply usingname
instead ofstate
. - Can be used with other activity types to provide additional information on the activity. (#1683)
- When used with
- Add missing Audit Log event types to
AuditLogEventType
(#1705) - Add
approximate_guild_count
field to ownApplication
(#1712)
Bugfixes
- Handle connection reset error on shards. (#1645)
- Retry REST requests on connection errors (#1648)
- Add support for text in stage channels (#1653)
- Fix incorrect calculation for the default avatar of migrated users (#1673)
- Fix attachments not being removed in message edits when
attachment
orattachments
isNone
(#1702)
2.0.0.dev120
2.0.0.dev120 (2023-06-08)
Breaking Changes
- Remove previously deprecated
hikari.impl.bot
module (#1612)
Deprecation
- Deprecate
User.discriminator
(#1631)
Features
- Implement voice messages (#1609)
- Implement username changes:
- Add
global_name
User.__str__()
respectsglobal_name
nowUser.default_avatar_url
returns correct URL for migrated accounts (#1631)
- Add
Bugfixes
2.0.0.dev119
2.0.0.dev119 (2023-05-08)
Breaking Changes
- Remove deprecated functionality for 2.0.0.dev119
- Removed
TextInputBuilder.required
in favour ofTextInputBuilder.is_required
. - Removed the ability to pass
CommandChoices
instead ofAutocompleteChoiceBuilders
when making autocomplete responses. (#1580)
- Removed
Bugfixes
- Fix
messages
argument typing forRESTClient.delete_messages
. (#1581) - Default
HTTPSettings.enable_cleanup_closed
toFalse
.- CPython3.11 changes around SSLProto have made this quite unstable and prone to errors when dealing with unclosed TLS transports, which ends up in aiohttp calling close and abort twice. (#1585)
Guild.get_channel
,Guild.get_emoji
,Guild.get_sticker
andGuild.get_role
now only return entries from the relevant guild. (#1608)