Skip to content

Commit

Permalink
docs: add changelog entries
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftinv committed Nov 28, 2024
1 parent 6e04667 commit 432ca57
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/1173.deprecate.0.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Deprecate :attr:`ApplicationCommand.dm_permission` and related fields/parameters of application command objects. Use ``contexts`` instead.
1 change: 1 addition & 0 deletions changelog/1173.deprecate.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Deprecate :attr:`Message.interaction` attribute and :class:`InteractionReference`. Use :attr:`Message.interaction_metadata` instead.
14 changes: 13 additions & 1 deletion changelog/1173.feature.rst
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
TBD
Add support for user-installed commands. See :ref:`app_command_contexts` for further details.
- Add :attr:`ApplicationCommand.integration_types` and :attr:`ApplicationCommand.contexts` fields,
with respective :class:`ApplicationIntegrationTypes` and :class:`InteractionContextTypes` flag types.
- :class:`Interaction` changes:
- Add :attr:`Interaction.context` field, reflecting the context in which the interaction occurred.
- Add :attr:`Interaction.authorizing_integration_owners` field and :class:`AuthorizingIntegrationOwners` class, containing details about the application installation.
- :attr:`Interaction.app_permissions` is now always provided by Discord.
- Add :attr:`Message.interaction_metadata` and :class:`InteractionMetadata` type, containing metadata for the interaction associated with a message.
- Add ``integration_type`` parameter to :func:`utils.oauth_url`.
- Add :attr:`AppInfo.guild_integration_type_config` and :attr:`AppInfo.user_integration_type_config` fields.
- |commands| Add ``integration_types`` and ``contexts`` parameters to application command decorators.
- |commands| Add :func:`~ext.commands.integration_types` and :func:`~ext.commands.contexts` decorators.
- |commands| Using the :class:`GuildCommandInteraction` annotation now sets :attr:`~ApplicationCommand.integration_types` and :attr:`~ApplicationCommand.contexts`, instead of :attr:`~ApplicationCommand.dm_permission`.

0 comments on commit 432ca57

Please sign in to comment.