Releases: hikari-py/hikari
Releases · hikari-py/hikari
Traits checking optimization and more models
Breaking Changes
- EventDispatcher renamed to EventManager
Features
- Traits checking optimization (10x faster and failfast)
- EventManager optimizations
- Documentation search rewrite and speedup
rest.edit_membernow returns the edited member- Sticker models
- Welcome screen models and endpoints
Bugfixes
- Generated nonce too large in guild chunking
hikari.api.event_factory.EventFactoryis now an abstract class- Ignore redundant
ON_GUILD_INTEGRATION_UPDATEgateway event - EventManager now accepts cache to be
None - Fix setting provisional coroutine tracking depth
- Add proxy resource to
EmbedVideoand fix handling of None in embed resources. - Fix handling of "cover_image" in message application deserialization
General bugfixes
Breaking changes
- Rename GuildAvailableEvent.guild_chunk_nocne to GuildAvailableEvent.chunk_nonce
- Documentation moved back to
/hikari
Bugfixes
- Fix outputing sha1 and version in cli
- Fix outputing version in pypi version detection
Configurable cache
Breaking changes
- RestAware does not include CacheAware anymore
- Guild chunker removed
PartialMessage.replyrenamed toPartialMessage.respondreply_messagearg renamed toreplyreply_mentionarg renamed tomentions_replyPresenceUpdateEvent.get_cached_userrenamed toPresenceUpdateEvent.get_user- Documentation has been moved from
https://hikari-py.github.io/hikari/hikaritohttps://hikari-py.github.io/hikari/documentation chunking_limitandenable_cacheargs removed fromBotImpl- To retain the functionality of
enable_cache, please useBotImpl(cache_settings=CacheSttings(enable=False))
- To retain the functionality of
Features
source_channelandsource_guildhave been added toWebhook- Guild template objects and endpoints
Member.is_pendingattribute addedMember.rolesproperty addedapplications.TeamMembernow extendsusers.User- Twemoji base url has been switched to raw.githubusercontent.com to avoid redirects
- Stateful and stateless components merged
Message.respondcan take inreplyasTrueto reply to the messageGuildAvailableEventnow includes aguild_chunk_nonceattribute to aid tracking chunks- CacheImpl rewritten internally
- Fully configurable (
hikari.config.CacheSettings) - Allow snowflakes.Snowflakeish to be used for IDs in calls to cache
- Fully configurable (
Bugfixes
- Improve handling websocket disconnects
- Mobile friendly landing page
OwnUser.sendnow matches the inherited signaturementions_replyadded toedit_message- PyPI checker now recomends you to update dev releases
- Voice state now correctly updates (muting and deafening)
- Cache now cleared out on bot closure
.channelproperties failing to assert whenNone
Role tags and dm flow
Breaking Changes
None :)
Features
- DM flow on user objects
- Better
__str__forBulkDeleteError
Package bumps
multidict(5.0.2 -> 5.1.0)
Gateway and component bugfixes
- New error
ComponentNotRunningErrorthat will be raised when trying to interact with a component that is not running - Actually closing when one of the shards has been manually shut down
sent_closenot being set when callingsend_close- Unused ratelimiter now hooked up to prevent getting disconnected on too many requests
bot.shardsis now populated as soon as the shard object is created to be able to be used throughbot.xon shard events
Inline replies support and `old_x` on update and delete events
Breaking changes
rest.create_crosspostshas been renamed torest.crosspost_messageMessageCrosspostrenamed toMessageRefence
Features
- New webhook endpoints to interact with messages sent by webhooks
rest.edit_webhook_messagerest.delete_webhook_message
old_xfields on objects that are sent onXUpdateEventandXDeleteEvent- This requires the cache to be enabled and the info to be available. If not,
old_xwill beNone.
- This requires the cache to be enabled and the info to be available. If not,
- Cache configuration is now possible by using
BotApp(cache_settings=...) - Message cache
- Configurable by using
hikari.config.CacheSettings
- Configurable by using
- Logging fixes
- New speedup (brotli)
Bugfixes
bot.heartbeat_latencyreturning the sum of all shard latencies instead of the averagebot.wait_fornot removing waiter from the set on timeout- Switch to using
x-ratelimit-reset-afteras reset_after for more precision- Add reactions endpoint should be faster now
Package version bumps
- aiohttp (3.7.2 -> 3.7.3)
- brotli (1.0.7 -> 1.0.9) [speedups] SECURITY BUG, PLEASE UPDATE IF YOU ARE USING IT
Ratelimits fixes and new models
Breaking changes
Messagementions have been moved toMessage.mentionsas aMentionsobject to provide more functionality
Features
GuildMember.banis now implemented- Prebuilt documentation indexes for faster loading times
- New
rest.search_membersendpoint
Bug fixes
- Running expensive logging functions when logging was not enabled
- This slowed down requests, which wont happen now.
- Implemented a lock on requests which only allows 1 simultaneous request to aid ratelimiting
- Should help bots which use a lot 1 single endpoint, as there will be no more 429's
Package version bumps
- attrs (20.2.0 -> 20.3.0)
- colorlog (4.4.0 -> 4.6.2)
- multidict (5.0.0 -> 5.0.2)
Correct shard and bot closing
Breaking changes
- Removed
PUBLICandPUBLIC_DISABLEDflags from guild features and they have been replaced byCOMMUNITYandDISCOVERABLE
Features
- New JSON Codes
- Bot and webhook integrations objects + endpoints
- New
IntegrationTypeandIntegrationApplication
- New
- AuditLog methods
Bugfixes
- Errors by shards being suppressed and always being treated as being able to reconnect
- This will now kill the application when trying to connect with invalid intents, for example
- Enum
iternot returning correct values - Allow
include_presencesto beFalsewhenGUILD_PRESENCESisn't declared forrest.request_guild_members
Packages bumped
multidict(4.7.6 -> 5.0.0)aiohttp(3.6.2 -> 3.7.2)cchardet(2.1.6 -> 2.1.7) [speedups]
Misc
- Lots of new test
- Removed some unreachable code
Python 3.10 support and bug fixes
Features
- Python 3.10 support
hikari.errors.RateLimitTooLongErrorerror message improved
Bug fixes
- Creating a guild channel and specifying a category wouldn't create the channel under that category
hikari.errors.RateLimitTooLongErrorgetting raised when it shouldn'tmax_rate_limitdefault increased to 5 minutes
Documentation fixes
hikari.undefined.UNDEFINEDnot being documented properly- Updated links to point to new website
index.htmlcontent appearing in search results
Pickle fixes
This will enable undefined values to be pickled correctly, as this was in a request to be fixed.
Breaking changes
- You will no longer be able to call
hikari.undefined.UndefinedType()to get a reference tohikari.undefined.UNDEFINED, you should instead access the constant value directly.