Skip to content

Commit

Permalink
release: 2.7.0 (#841)
Browse files Browse the repository at this point in the history
  • Loading branch information
onerandomusername authored Nov 1, 2022
1 parent 3a3153f commit 1d2325d
Show file tree
Hide file tree
Showing 42 changed files with 71 additions and 65 deletions.
1 change: 0 additions & 1 deletion changelog/265.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/393.doc.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/433.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/468.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/697.doc.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/764.doc.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/766.breaking.rst

This file was deleted.

2 changes: 0 additions & 2 deletions changelog/766.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/777.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/778.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/781.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/784.misc.0.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/784.misc.1.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/785.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/786.doc.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/789.misc.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/791.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/791.misc.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/792.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/793.doc.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/797.doc.rst

This file was deleted.

12 changes: 0 additions & 12 deletions changelog/800.feature.rst

This file was deleted.

12 changes: 0 additions & 12 deletions changelog/803.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/806.deprecate.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/806.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/810.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/814.breaking.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/814.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/814.deprecate.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/816.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/818.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/820.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/821.doc.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/822.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/825.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/827.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/827.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/829.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/832.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/833.feature.rst

This file was deleted.

4 changes: 2 additions & 2 deletions disnake/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
__author__ = "Rapptz, EQUENOS"
__license__ = "MIT"
__copyright__ = "Copyright 2015-present Rapptz, 2021-present EQUENOS"
__version__ = "2.7.0a"
__version__ = "2.7.0"

__path__ = __import__("pkgutil").extend_path(__path__, __name__)

Expand Down Expand Up @@ -80,6 +80,6 @@ class VersionInfo(NamedTuple):
serial: int


version_info: VersionInfo = VersionInfo(major=2, minor=7, micro=0, releaselevel="alpha", serial=0)
version_info: VersionInfo = VersionInfo(major=2, minor=7, micro=0, releaselevel="final", serial=0)

logging.getLogger(__name__).addHandler(logging.NullHandler())
69 changes: 69 additions & 0 deletions docs/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,75 @@ in specific versions.

.. towncrier release notes start
.. _vp2p7p0:

v2.7.0
------

This release comes with support for python 3.11 and new selects.

Breaking Changes
~~~~~~~~~~~~~~~~
- Properly document that :attr:`Message.system_content` may return ``None``. While this is documented as a breaking change, this function always could return ``None`` if the message type was not recognised. (:issue:`766`)
- Rename :meth:`InteractionDataResolved.get` to :meth:`~InteractionDataResolved.get_by_id`. (:issue:`814`)

Deprecations
~~~~~~~~~~~~
- Rename :class:`ApplicationCommandInteractionDataResolved` to :class:`InteractionDataResolved`. (:issue:`814`)
- |commands| Deprecate the ``sync_commands``, ``sync_commands_debug``, and ``sync_commands_on_cog_unload`` parameters of :class:`~disnake.ext.commands.Bot` and :class:`~disnake.ext.commands.InteractionBot`. These have been replaced with the ``command_sync_flags`` parameter which takes a :class:`~disnake.ext.commands.CommandSyncFlags` instance. (:issue:`806`)

New Features
~~~~~~~~~~~~
- Update :attr:`Message.system_content` to be accurate to the client as of October 2022. (:issue:`766`)
- This also properly documents that it is possible to return ``None``.
- Add type hints to all flag constructors, now supporting type-checking for creating flag classes (e.g. ``Intents(members=True)``) which used to be untyped. (:issue:`778`)
- Add :func:`GuildScheduledEvent.start`, :func:`.end <GuildScheduledEvent.end>` and :func:`.cancel <GuildScheduledEvent.cancel>` shortcuts. (:issue:`781`)
- Support Python 3.11. (:issue:`785`, :issue:`827`, :issue:`829`, :issue:`833`)
- Improve the cli, allowing the usage of :class:`.ext.commands.InteractionBot`, :class:`.ext.commands.AutoShardedInteractionBot`. (:issue:`791`)
- Add new select menu components. (:issue:`800`, :issue:`803`)
- Add new :class:`ComponentType` values.
- Add :class:`UserSelectMenu`, :class:`RoleSelectMenu`, :class:`MentionableSelectMenu`, :class:`ChannelSelectMenu` components.
- Add :class:`ui.UserSelect`, :class:`ui.RoleSelect`, :class:`ui.MentionableSelect`, :class:`ui.ChannelSelect` UI types.
- Add :func:`ui.user_select`, :func:`ui.role_select`, :func:`ui.mentionable_select`, :func:`ui.channel_select` decorators.
- Add :func:`ui.ActionRow.add_user_select`, :func:`add_role_select() <ui.ActionRow.add_role_select>`, :func:`add_mentionable_select() <ui.ActionRow.add_mentionable_select>`, :func:`add_channel_select() <ui.ActionRow.add_channel_select>`
- Renamed string select types for clarity (previous names will continue to work):
- :class:`SelectMenu` -> :class:`StringSelectMenu`
- :class:`ui.Select` -> :class:`ui.StringSelect`
- :func:`ui.select` -> :func:`ui.string_select`
- :func:`ui.ActionRow.add_select` -> :func:`ui.ActionRow.add_string_select`
- Add :attr:`MessageInteraction.resolved_values` and :attr:`MessageInteractionData.resolved`.
- Support ``delete_after`` parameter when sending ephemeral interaction responses. (:issue:`816`)
- Allow ``slowmode_delay`` parameter of :meth:`ForumChannel.create_thread` to be optional. (:issue:`822`)
- Add ``suppress_embeds`` parameter to :meth:`Interaction.edit_original_response` and :meth:`InteractionMessage.edit`. (:issue:`832`)
- |commands| Add :class:`~disnake.ext.commands.CommandSyncFlags` to provide sync configuration to :class:`~disnake.ext.commands.Bot` and :class:`~disnake.ext.commands.InteractionBot` (and their autosharded variants) as ``command_sync_flags``. (:issue:`265`, :issue:`433`, :issue:`468`, :issue:`806`)

Bug Fixes
~~~~~~~~~
- Add the missing attributes for :class:`PermissionOverwrite`: ``use_application_commands`` and ``use_embedded_activities``. (:issue:`777`)
- Ensure that embed fields are copied properly by :func:`Embed.copy` and that the copied embed is completely separate from the original one. (:issue:`792`)
- Fix an issue with :meth:`Member.ban` erroring when the ``delete_message_days`` parameter was provided. (:issue:`810`)
- Try to get threads used in interactions (like threads in command arguments) from the cache first, before creating a new instance. (:issue:`814`)
- Fix creation of threads in text channels without :attr:`Permissions.manage_threads`. (:issue:`818`)
- Fix off-by-one error in :class:`AutoModKeywordPresets` values. (:issue:`820`)
- Update event loop handling to avoid warnings when running on Python 3.11. (:issue:`827`)
- |commands| Fix a case where optional variadic arguments could have infinite loops in parsing depending on the user input. (:issue:`825`)

Documentation
~~~~~~~~~~~~~
- Speed up page load by changing hoverxref tooltips to be lazily loaded. (:issue:`393`)
- Remove reference to the v1.0 migration guide from the main index page, and move legacy changelogs to a separate page. (:issue:`697`)
- Update sphinx from version 5.1 to 5.3. (:issue:`764`, :issue:`821`)
- Add a note warning mentioning that using a :class:`disnake.File` object as file kwarg makes a :class:`disnake.Embed` not reusable. (:issue:`786`)
- Update broken Discord API Docs links, add ``:ddocs:`` role for easily creating links to the API documentation. (:issue:`793`)
- Add a custom 404 page for when the navigated page does not exist. (:issue:`797`)

Miscellaneous
~~~~~~~~~~~~~
- Increase the upper bound for the ``aiohttp`` dependency from ``<3.9`` to ``<4``. (:issue:`789`)
- Use ``importlib.metadata`` instead of the deprecated ``pkg_resources`` in the cli for displaying the version. (:issue:`791`)
- |commands| Add missing ``py.typed`` marker. (:issue:`784`)
- |tasks| Add missing ``py.typed`` marker. (:issue:`784`)

.. _vp2p6p2:

v2.6.2
Expand Down

0 comments on commit 1d2325d

Please sign in to comment.