Skip to content

Commit e87178e

Browse files
authored
release: v2.8.0 (#925)
1 parent 2287e69 commit e87178e

37 files changed

+92
-42
lines changed

Diff for: changelog/578.feature.rst

-1
This file was deleted.

Diff for: changelog/794.feature.rst

-1
This file was deleted.

Diff for: changelog/830.misc.rst

-1
This file was deleted.

Diff for: changelog/839.feature.rst

-1
This file was deleted.

Diff for: changelog/849.bugfix.rst

-1
This file was deleted.

Diff for: changelog/854.feature.rst

-1
This file was deleted.

Diff for: changelog/858.bugfix.rst

-1
This file was deleted.

Diff for: changelog/859.doc.rst

-1
This file was deleted.

Diff for: changelog/864.doc.rst

-1
This file was deleted.

Diff for: changelog/865.feature.rst

-3
This file was deleted.

Diff for: changelog/866.feature.rst

-1
This file was deleted.

Diff for: changelog/870.bugfix.rst

-1
This file was deleted.

Diff for: changelog/872.doc.rst

-1
This file was deleted.

Diff for: changelog/873.feature.rst

-1
This file was deleted.

Diff for: changelog/877.doc.rst

-1
This file was deleted.

Diff for: changelog/877.feature.rst

-1
This file was deleted.

Diff for: changelog/879.bugfix.rst

-1
This file was deleted.

Diff for: changelog/880.bugfix.rst

-1
This file was deleted.

Diff for: changelog/883.feature.rst

-1
This file was deleted.

Diff for: changelog/885.feature.rst

-1
This file was deleted.

Diff for: changelog/887.bugfix.rst

-1
This file was deleted.

Diff for: changelog/890.feature.rst

-1
This file was deleted.

Diff for: changelog/895.feature.rst

-1
This file was deleted.

Diff for: changelog/903.feature.rst

-1
This file was deleted.

Diff for: changelog/905.feature.rst

-1
This file was deleted.

Diff for: changelog/906.feature.rst

-4
This file was deleted.

Diff for: changelog/907.bugfix.rst

-1
This file was deleted.

Diff for: changelog/910.feature.rst

-1
This file was deleted.

Diff for: changelog/911.bugfix.rst

-1
This file was deleted.

Diff for: changelog/912.breaking.rst

-1
This file was deleted.

Diff for: changelog/912.bugfix.rst

-1
This file was deleted.

Diff for: changelog/915.feature.rst

-1
This file was deleted.

Diff for: changelog/918.feature.rst

-1
This file was deleted.

Diff for: changelog/920.feature.rst

-1
This file was deleted.

Diff for: changelog/921.bugfix.rst

-1
This file was deleted.

Diff for: disnake/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
__author__ = "Rapptz, EQUENOS"
1616
__license__ = "MIT"
1717
__copyright__ = "Copyright 2015-present Rapptz, 2021-present EQUENOS"
18-
__version__ = "2.8.0a"
18+
__version__ = "2.8.0"
1919

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

@@ -81,6 +81,6 @@ class VersionInfo(NamedTuple):
8181
serial: int
8282

8383

84-
version_info: VersionInfo = VersionInfo(major=2, minor=8, micro=0, releaselevel="alpha", serial=0)
84+
version_info: VersionInfo = VersionInfo(major=2, minor=8, micro=0, releaselevel="final", serial=0)
8585

8686
logging.getLogger(__name__).addHandler(logging.NullHandler())

Diff for: docs/whats_new.rst

+90
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,82 @@ in specific versions.
1717

1818
.. towncrier release notes start
1919
20+
.. _vp2p8p0:
21+
22+
v2.8.0
23+
------
24+
25+
This release comes with support for NSFW application commands,
26+
the :func:`on_audit_log_entry_create` event,
27+
and a new :class:`Event` enum for use with methods like :func:`Client.wait_for`.
28+
29+
Breaking Changes
30+
~~~~~~~~~~~~~~~~
31+
- :attr:`StickerPack.cover_sticker_id`, :attr:`.cover_sticker <StickerPack.cover_sticker>` and :attr:`.banner <StickerPack.banner>` are now optional and may return ``None``. (:issue:`912`)
32+
- :attr:`AuditLogEntry.user` may now be an :class:`Object` if the user cannot be found, particularly in entries from the :func:`on_audit_log_entry_create` event. (:issue:`920`)
33+
34+
New Features
35+
~~~~~~~~~~~~
36+
- Add :class:`GuildBuilder` and :func:`Client.guild_builder` for full coverage of the guild creation endpoint. (:issue:`578`)
37+
- Support regex within automod using :attr:`AutoModTriggerMetadata.regex_patterns`. (:issue:`794`)
38+
- Add :attr:`File.closed` and :attr:`File.bytes_length` properties. (:issue:`839`)
39+
- Add :attr:`TextChannel.default_thread_slowmode_delay`. (:issue:`854`)
40+
- Add support for NSFW application commands. (:issue:`865`)
41+
- Add :attr:`ApplicationCommand.nsfw`.
42+
- Add ``nsfw`` parameter to command constructors and decorators.
43+
- Add :attr:`.UserFlags.active_developer` and :attr:`PublicUserFlags.active_developer`. (:issue:`866`)
44+
- Adds reasons/descriptions to :exc:`ConnectionClosed` errors. (:issue:`873`)
45+
- Update :class:`AutoModTriggerMetadata` overloads to allow passing ``allow_list`` to keyword-based rules. (:issue:`877`)
46+
- The :attr:`PublicUserFlags.discord_certified_moderator` is now an alias of :attr:`PublicUserFlags.moderator_programs_alumni`. (:issue:`883`)
47+
- Add :attr:`ForumChannel.default_layout`, and ``default_layout`` parameter to channel edit methods. (:issue:`885`, :issue:`903`)
48+
- Add :attr:`Locale.id` (Indonesian) locale. (:issue:`890`)
49+
- Adds :class:`Event` enumeration to use in :meth:`Client.wait_for`, :meth:`disnake.ext.commands.Bot.wait_for` and in :func:`disnake.ext.commands.Bot.listen` decorator. (:issue:`895`)
50+
- Add new :attr:`MessageType.interaction_premium_upsell` and :attr:`MessageType.guild_application_premium_subscription` message types. (:issue:`905`)
51+
- Add application role connection features. (:issue:`906`)
52+
- Add :class:`ApplicationRoleConnectionMetadata` and :class:`ApplicationRoleConnectionMetadataType` types.
53+
- Add :class:`Client.fetch_role_connection_metadata` and :class:`Client.edit_role_connection_metadata` methods.
54+
- Add :attr:`RoleTags.is_linked_role` and :attr:`AppInfo.role_connections_verification_url` attributes.
55+
- Add :attr:`StickerFormatType.gif`. (:issue:`910`)
56+
- Add support for the :func:`on_audit_log_entry_create` gateway event, and add :attr:`Intents.moderation` intent. :attr:`Intents.bans` is now an alias of :attr:`Intents.moderation`. (:issue:`915`)
57+
- Add :attr:`~Member.flags` property to :class:`Member`. (:issue:`918`)
58+
- Add fallback to :class:`Object` for :attr:`AuditLogEntry.user` (:issue:`920`)
59+
60+
Bug Fixes
61+
~~~~~~~~~
62+
- |commands| Fix ``help_command`` parameter annotations to allow ``None`` value. (:issue:`849`)
63+
- Fix user cache memory leak where unused objects weren't being evicted (provided that :attr:`Intents.members` is enabled). (:issue:`858`)
64+
- Fix :attr:`Message.author.public_flags <Member.public_flags>` always being ``0`` when the member cache is disabled. (:issue:`870`)
65+
- Export missing ``ThreadWithMessage`` class. (:issue:`879`)
66+
- Add previously missing ``applied_tags`` parameter to all :meth:`ForumChannel.create_thread` overloads. (:issue:`880`)
67+
- Fix conversion of custom emoji strings (e.g. ``<:this:934852112221872198>``) in :meth:`Message.add_reaction` and similar methods to more strictly adhere to the API documentation. (:issue:`887`)
68+
- Fix :meth:`Client.delete_guild_command` not updating the local command cache. (:issue:`907`)
69+
- Fix errors when trying to deserialize stickers with unknown formats. (:issue:`911`)
70+
- Make :attr:`StickerPack.cover_sticker_id`, :attr:`.cover_sticker <StickerPack.cover_sticker>` and :attr:`.banner <StickerPack.banner>` optional. (:issue:`912`)
71+
- Fix handling of ``ECONNRESET`` errors on Linux. (:issue:`921`)
72+
73+
Documentation
74+
~~~~~~~~~~~~~
75+
- Enable `OpenSearch <https://developer.mozilla.org/en-US/docs/Web/OpenSearch>`_, allowing easy integration of the search functionality into browsers. (:issue:`859`)
76+
- Clarify types of optional :class:`Invite` attributes. (:issue:`864`)
77+
- Remove documentation regarding private threads requiring boosts. (:issue:`872`)
78+
- Update :class:`AutoModTriggerMetadata` field limits. (:issue:`877`)
79+
80+
Miscellaneous
81+
~~~~~~~~~~~~~
82+
- Declare a :pep:`517` build backend in pyproject.toml, and use :pep:`621` to define most package metadata. (:issue:`830`)
83+
84+
.. _vp2p7p1:
85+
86+
v2.7.1
87+
------
88+
89+
Bug Fixes
90+
~~~~~~~~~
91+
- Fix :attr:`Message.author.public_flags <Member.public_flags>` always being ``0`` when the member cache is disabled. (:issue:`870`)
92+
- Export missing ``ThreadWithMessage`` class. (:issue:`879`)
93+
- Fix :meth:`Client.delete_guild_command` not updating the local command cache. (:issue:`907`)
94+
- Fix errors when trying to deserialize stickers with unknown formats. (:issue:`911`)
95+
2096
.. _vp2p7p0:
2197

2298
v2.7.0
@@ -86,6 +162,20 @@ Miscellaneous
86162
- |commands| Add missing ``py.typed`` marker. (:issue:`784`)
87163
- |tasks| Add missing ``py.typed`` marker. (:issue:`784`)
88164

165+
.. _vp2p6p3:
166+
167+
v2.6.3
168+
------
169+
170+
This maintainence release contains backports from v2.8.0.
171+
172+
Bug Fixes
173+
~~~~~~~~~
174+
- Fix :attr:`Message.author.public_flags <Member.public_flags>` always being ``0`` when the member cache is disabled. (:issue:`870`)
175+
- Export missing ``ThreadWithMessage`` class. (:issue:`879`)
176+
- Fix :meth:`Client.delete_guild_command` not updating the local command cache. (:issue:`907`)
177+
- Fix errors when trying to deserialize stickers with unknown formats. (:issue:`911`)
178+
89179
.. _vp2p6p2:
90180

91181
v2.6.2

0 commit comments

Comments
 (0)