Scheduled events and huge event dispatching optimization
Pre-release
Pre-release
Breaking Changes
hikari.confighas now been split up tohikari.api.configandhikari.impl.configto avoid leaking impl detail.
This also means that config types are no-longer accessible at the top level (directly onhikari). (#1067)- Hide the entity factory's component deserialize methods. (#1074)
- Remove nonce parameter from create message.
This was purposely removed from the bot api documentation inferring that its no-longer officially supported. (#1075) - Remove
VoiceRegion.is_vipdue to Discord no longer sending it. (#1086) - Remove store sku related application fields and store channels. (#1092)
Deprecation
- Renamed
nickargument tonicknamefor edit member and add user to guild REST methods. (#1095)
Features
- Scheduled event support. (#1056)
get_guild()is now available onhikari.GuildChannel. (#1057)- Optimize receiving websocket JSON for the happy path. (#1058)
- The threaded file reader now persists the open file pointer while the context manager is active. (#1073)
- Optimize event dispatching by only deserializing events when they are needed. (#1094)
- Add
hikari.locales.Localeto help with Discord locale strings. (#1090)
Bugfixes
fetch_my_guildsno-longer returns duplicate guilds nor makes unnecessary (duplicated) requests whennewest_firstis set toTrue. (#1059)- Add
InviteEventtohikari.events.channel_events.__all__,hikari.events.__all__andhikari.__all__. (#1065) - Fix incorrect type for ATTACHMENT option values. (#1066)
EventManager.get_listenersnow correctly defines polymorphic and returns accordingly. (#1094)- Take the major param for webhook without token endpoints when handling bucket ratelimits. (#1102)
- Fix incorrect value for
GuildFeature.MORE_STICKERS. (#1989)