Releases: DisnakeDev/disnake
v2.7.0
What's Changed
This release adds support for python 3.11 and the new selects released by Discord.
See the docs for how to use these new selects.
Breaking Changes
- Properly document that
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. (#766) - Rename InteractionDataResolved.get() to get_by_id(). (#814)
Deprecations
- Rename ApplicationCommandInteractionDataResolved to
InteractionDataResolved
. (#814) - [ext.commands] Deprecate the sync_commands, sync_commands_debug, and sync_commands_on_cog_unload parameters of Bot and
InteractionBot
. These have been replaced with the command_sync_flags parameter which takes aCommandSyncFlags
instance. (#806)
New Features
- Update
Message.system_content
to be accurate to the client as of October 2022. (#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. (#778)
- Add
GuildScheduledEvent.start()
,.end
and.cancel
shortcuts. (#781) - Support Python 3.11. (#785, #827, #829, #833)
- Improve the cli, allowing the usage of
ext.commands.InteractionBot
,ext.commands.AutoShardedInteractionBot
. (#791) - Add new select menu components. (#800, #803)
- Add new
ComponentType
values.- Add
UserSelectMenu
,RoleSelectMenu
,MentionableSelectMenu
,ChannelSelectMenu
components. - Add
ui.UserSelect
,ui.RoleSelect
,ui.MentionableSelect
,ui.ChannelSelect
UI types. - Add
ui.user_select()
,ui.role_select()
,ui.mentionable_select()
,ui.channel_select()
decorators. - Add
ui.ActionRow.add_user_select()
,add_role_select()
,add_mentionable_select()
,add_channel_select()
- Renamed string select types for clarity (previous names will continue to work):
- SelectMenu ->
StringSelectMenu
- ui.Select ->
ui.StringSelect
- ui.select() ->
ui.string_select()
- ui.ActionRow.add_select() ->
ui.ActionRow.add_string_select()
- SelectMenu ->
- Add
MessageInteraction.resolved_values
andMessageInteractionData.resolved
.
- Add
- Support delete_after parameter when sending ephemeral interaction responses. (#816)
- Allow slowmode_delay parameter of
ForumChannel.create_thread()
to be optional. (#822) - Add suppress_embeds parameter to
Interaction.edit_original_response()
andInteractionMessage.edit()
. (#832) - [ext.commands] Add
CommandSyncFlags
to provide sync configuration to Bot andInteractionBot
(and their autosharded variants) as command_sync_flags. (#265, #433, #468, #806)
Bug Fixes
- Add the missing attributes for
PermissionOverwrite
: use_application_commands and use_embedded_activities. (#777) - Ensure that embed fields are copied properly by
Embed.copy()
and that the copied embed is completely separate from the original one. (#792) - Fix an issue with
Member.ban()
erroring when the delete_message_days parameter was provided. (#810) - Try to get threads used in interactions (like threads in command arguments) from the cache first, before creating a new instance. (#814)
- Fix creation of threads in text channels without
Permissions.manage_threads
. (#818) - Fix off-by-one error in
AutoModKeywordPresets
values. (#820) - Update event loop handling to avoid warnings when running on Python 3.11. (#827)
- [ext.commands] Fix a case where optional variadic arguments could have infinite loops in parsing depending on the user input. (#825)
Documentation
- Speed up page load by changing hoverxref tooltips to be lazily loaded. (#393)
- Remove reference to the v1.0 migration guide from the main index page, and move legacy changelogs to a separate page. (#697)
- Update sphinx from version 5.1 to 5.3. (#764, #821)Add a note warning mentioning that using a
disnake.File
object as file kwarg makes adisnake.Embed
not reusable. (#786) - Update broken Discord API Docs links, add :ddocs: role for easily creating links to the API documentation. ([#793](https://github.c...
v2.6.2
Bug Fixes
- Fix creation of threads in text channels without
Permissions.manage_threads
. (#818) - Fix off-by-one error in
AutoModKeywordPresets
values. (#820) - [ext.commands] Fix a case where optional variadic arguments could have infinite loops in parsing depending on the user input. (#825)
Full changelog: https://docs.disnake.dev/en/v2.6.2/whats_new.html#v2-6-2
Git history: v2.6.1...v2.6.2
v2.6.1
Bug Fixes
- Ensure that embed fields are copied properly by
Embed.copy()
and that the copied embed is completely separate from the original one. (#792) - Fix an issue with
Member.ban()
erroring when thedelete_message_days
parameter was provided. (#810)
Full changelog: https://docs.disnake.dev/en/v2.6.1/whats_new.html#v2-6-1
Git history: v2.6.0...v2.6.1
v2.6.0
This release adds support for new forum channel features (like tags) as well as auto moderation, among other things. See below for more.
Also note the breaking changes listed below, which may require additional code changes.
Full changelog: https://docs.disnake.dev/en/stable/whats_new.html#v2-6-0
Git history: v2.5.0...v2.6.0
New Contributors
- @thehaffk made their first contribution in #516
- @davids-tips made their first contribution in #541
- @toolifelesstocode made their first contribution in #566
- @ResetXD made their first contribution in #571
- @Skelmis made their first contribution in #576
- @emretech made their first contribution in #612
- @filefly made their first contribution in #620
- @vcokltfre made their first contribution in #623
- @Enegg made their first contribution in #281
- @zachnieto made their first contribution in #567
- @ItsAleph made their first contribution in #661
- @ChristopherJHart made their first contribution in #636
- @Snipy7374 made their first contribution in #730
v2.5.3
This is a maintenance release with backports from v2.6.0.
Full changelog: https://docs.disnake.dev/en/v2.5.3/whats_new.html#v2-5-3
Git history: v2.5.2...v2.5.3
v2.4.2
Includes a backport of a fix relating to the message content intent always being requested by the client.
Changelog: https://docs.disnake.dev/en/v2.4.x/whats_new.html#v2-4-2
v2.5.2
Includes several bug fixes and documentation updates.
More details and full changelog: https://docs.disnake.dev/en/v2.5.x/whats_new.html#v2-5-2
v2.4.1
Includes several bug fixes and documentation updates.
More details and full changelog: https://docs.disnake.dev/en/v2.4.x/whats_new.html#v2-4-1
v2.5.1
Small patch release to fix an issue with the @slash.autocomplete(...)
decorator in v2.5.0.
Changelog: https://docs.disnake.dev/en/latest/whats_new.html#v2-5-1
v2.5.0
This version adds support for API v10 (which comes with a few breaking changes), forum channels, localizations, permissions v2, improves API coverage by adding support for previously missing features like guild previews, widgets, or welcome screens, and contains several miscellaneous enhancements and bugfixes.
Regarding the message content intent:
Note that earlier versions will continue working fine after the message content intent deadline (August 31st 2022), as long as the intent is enabled in the developer portal. However, from this version (2.5.0
) onward, the intent needs to be enabled in the developer portal and your code.
See this page of the guide for more information.
If you do not have access to the intent yet, you can temporarily continue using API v9 by calling disnake.http._workaround_set_api_version(9)
before connecting, which will keep sending message content before the intent deadline, even with the intent disabled.
More details and full changelog: https://docs.disnake.dev/en/latest/whats_new.html#v2-5-0