Skip to content

Configurable cache

Pre-release
Pre-release
Compare
Choose a tag to compare
@davfsa davfsa released this 14 Jan 12:49
· 1249 commits to master since this release
23a57e9

Breaking changes

  • RestAware does not include CacheAware anymore
  • Guild chunker removed
  • PartialMessage.reply renamed to PartialMessage.respond
  • reply_message arg renamed to reply
  • reply_mention arg renamed to mentions_reply
  • PresenceUpdateEvent.get_cached_user renamed to PresenceUpdateEvent.get_user
  • Documentation has been moved from https://hikari-py.github.io/hikari/hikari to https://hikari-py.github.io/hikari/documentation
  • chunking_limit and enable_cache args removed from BotImpl
    • To retain the functionality of enable_cache, please use BotImpl(cache_settings=CacheSttings(enable=False))

Features

  • source_channel and source_guild have been added to Webhook
  • Guild template objects and endpoints
  • Member.is_pending attribute added
  • Member.roles property added
  • applications.TeamMember now extends users.User
  • Twemoji base url has been switched to raw.githubusercontent.com to avoid redirects
  • Stateful and stateless components merged
  • Message.respond can take in reply as True to reply to the message
  • GuildAvailableEvent now includes a guild_chunk_nonce attribute to aid tracking chunks
  • CacheImpl rewritten internally
    • Fully configurable (hikari.config.CacheSettings)
    • Allow snowflakes.Snowflakeish to be used for IDs in calls to cache

Bugfixes

  • Improve handling websocket disconnects
  • Mobile friendly landing page
  • OwnUser.send now matches the inherited signature
  • mentions_reply added to edit_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
  • .channel properties failing to assert when None