Hikari

Latest version: v2.2.0

Safety actively analyzes 723217 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 8

2.2.0

Breaking Changes

- Remove `PartialInteraction.get_channel` and `PartialInteraction.fetch_channel`. You can directly use `PartialInteraction.channel` instead ([1621](https://github.com/hikari-py/hikari/issues/1621))
- User commands breaking changes:
- Remove previously deprecated `command_interactions.InteractionChannel` and `command_interactions.ResolvedOptionData`
- `CommandInteraction.app_permissions` is no longer optional
- Removal of `Commands.dm_permissions` and `Message.interaction`. Use `Commands.contexts` and `Message.interaction_metadata` respectively ([2195](https://github.com/hikari-py/hikari/issues/2195))
- Remove `with_expiration` parameter from REST client's `fetch_invite` method.
- The parameter has been a noop for a while as Discord removed it ([2224](https://github.com/hikari-py/hikari/issues/2224))

Features

- Several new `PartialInteraction` features:
- Add new `PartialInteraction.channel` attribute
- Moved common interaction fields to `PartialInteraction`
- `app_permissions` is now available for all interaction types
- Add missing fields to `InteractionChannel` ([1621](https://github.com/hikari-py/hikari/issues/1621))
- Add missing fields to `AuditLogEventType` ([1991](https://github.com/hikari-py/hikari/issues/1991))
- Add user installations support ([2177](https://github.com/hikari-py/hikari/issues/2177))

---

2.1.1

Features

- Allow specifying a reason for message deletions ([2066](https://github.com/hikari-py/hikari/issues/2066))
- Allow setting `name` and `value` of an `EmbedField` to an empty string. ([2105](https://github.com/hikari-py/hikari/issues/2105))

Bugfixes

- Fixed Entitlement `starts_at` and `ends_at` erroring when set to `None`. ([2149](https://github.com/hikari-py/hikari/issues/2149))
- Properly handle and error on Cloudflare bans ([2168](https://github.com/hikari-py/hikari/issues/2168))

Documentation Improvements

- Added missing documentation for `GatewayShard` and for trait `ShardAware`, adding missing errors which can be thrown. ([2100](https://github.com/hikari-py/hikari/issues/2100))

---

2.1.0

Breaking Changes

- `VoiceState.member` can now be `None` in cases where Discord doesn't send the relevant information ([2038](https://github.com/hikari-py/hikari/issues/2038))

Features

- Add the optional audit log `reason` argument to `hikari.api.rest.RESTClient.delete_channel` and
`hikari.impl.rest.RESTClientImpl.delete_channel`, the same way it already exists for e.g.
`edit_channel` ([2058](https://github.com/hikari-py/hikari/issues/2058))

Bugfixes

- Fix issue when deserializing voice states with missing member data ([2038](https://github.com/hikari-py/hikari/issues/2038))
- Fix `fetch_application_emojis` endpoint deserialization ([2050](https://github.com/hikari-py/hikari/issues/2050))
- Fix uploading files when using aiohttp 3.10.6 and onwards ([2059](https://github.com/hikari-py/hikari/issues/2059))

---

2.0

arc.slash_command("test", "Test command")
async def test(ctx: arc.GatewayContext) -> None:
channel = ctx.channel

2.0.0

- **Breaking:** Remove `is_dm_enabled` from all command, plugin, and client types. Use the newly added `invocation_contexts` instead.
- **Breaking:** Remove deprecated `Client.set_startup_hook` and `Client.set_shutdown_hook`. Use the newly added `Client.add_startup_hook` and `Client.add_shutdown_hook` instead.
- **Breaking:** Remove `Context.get_channel` and `AutocompleteData.get_channel`. Use the newly added `Context.channel` and `AutocompleteData.channel` properties instead.
- Add support for **user installations** of commands.
- Add `invocation_contexts` and `integration_types` to all command, plugin, and client types.
- Add `invocation_context` and `authorizing_integration_owners` to `Context` and `AutocompleteData`.
- Add `Client.find_command` and `PluginBase.find_command` to get a command by name.
- Bump `hikari` to `v2.2.0`.

Migration guide

`is_dm_enabled` removal

py

2.0.0.dev126

Features

- Add `registered_guild_id` field to `BaseCommandInteraction` ([1930](https://github.com/hikari-py/hikari/issues/1930))
- Add `clear_fields()` method to `Embed` ([1933](https://github.com/hikari-py/hikari/issues/1933))
- Add payload to deserialization error to make it easier to diagnose ([1943](https://github.com/hikari-py/hikari/issues/1943))

Bugfixes

- Fix incorrect form uploads with transport sensitive content ([1909](https://github.com/hikari-py/hikari/issues/1909))

Documentation Improvements

- Greatly optimize loading time ([1901](https://github.com/hikari-py/hikari/issues/1901))
- Remove extra indentation level from codeblocks ([1902](https://github.com/hikari-py/hikari/issues/1902))

---

Page 1 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.