Update dependency disnake to v2.7.0 #76

Merged
Xefir merged 1 commits from renovate/disnake-2.x into master 2022-11-02 10:32:53 +00:00
Owner

This PR contains the following updates:

Package Type Update Change
disnake dependencies minor 2.6.1 -> 2.7.0

Release Notes

DisnakeDev/disnake

v2.7.0

Compare Source

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](https://docs.disnake.dev/en/stable/ext/commands/index.html#discord-ext-commands)] Deprecate the sync_commands, sync_commands_debug, and sync_commands_on_cog_unload parameters of [Bot](https://docs.disnake.dev/en/stable/ext/commands/api.html#disnake.ext.commands.Bot) and [`InteractionBot`](https://docs.disnake.dev/en/stable/ext/commands/api.html#disnake.ext.commands.InteractionBot). These have been replaced with the command_sync_flags parameter which takes a [`CommandSyncFlags`](https://docs.disnake.dev/en/stable/ext/commands/api.html#disnake.ext.commands.CommandSyncFlags) instance. ([#​806](https://github.com/DisnakeDev/disnake/issues/806))
    
    
New Features
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](https://docs.disnake.dev/en/stable/ext/commands/index.html#discord-ext-commands)] Fix a case where optional variadic arguments could have infinite loops in parsing depending on the user input. ([#​825](https://github.com/DisnakeDev/disnake/issues/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 a disnake.Embed not reusable. (#​786)
  • Update broken Discord API Docs links, add :ddocs: role for easily creating links to the API documentation. (#​793)
  • Add a custom 404 page for when the navigated page does not exist. (#​797)
Miscellaneous
  • Increase the upper bound for the aiohttp dependency from <3.9 to <4. (#​789)
  • Use importlib.metadata instead of the deprecated pkg_resources in the cli for displaying the version. (#​791)
  • [ext.commands](https://docs.disnake.dev/en/stable/ext/commands/index.html#discord-ext-commands)] Add missing py.typed marker. ([#&#8203;784](https://github.com/DisnakeDev/disnake/issues/784))
    
  • [ext.tasks](https://docs.disnake.dev/en/stable/ext/tasks/index.html#discord-ext-tasks)] Add missing py.typed marker. ([#&#8203;784](https://github.com/DisnakeDev/disnake/issues/784))
    
    

Full changelog: https://docs.disnake.dev/en/stable/whats_new.html#v2-7-0
Git history: https://github.com/DisnakeDev/disnake/compare/v2.6.0...v2.7.0

v2.6.2

Compare Source

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](https://docs.disnake.dev/en/v2.6.2/ext/commands/index.html#discord-ext-commands)] Fix a case where optional variadic arguments could have infinite loops in parsing depending on the user input. ([#&#8203;825](https://github.com/DisnakeDev/disnake/issues/825))
    
    

Full changelog: https://docs.disnake.dev/en/v2.6.2/whats_new.html#v2-6-2
Git history: https://github.com/DisnakeDev/disnake/compare/v2.6.1...v2.6.2


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [disnake](https://github.com/DisnakeDev/disnake) | dependencies | minor | `2.6.1` -> `2.7.0` | --- ### Release Notes <details> <summary>DisnakeDev/disnake</summary> ### [`v2.7.0`](https://github.com/DisnakeDev/disnake/releases/tag/v2.7.0) [Compare Source](https://github.com/DisnakeDev/disnake/compare/v2.6.2...v2.7.0) #### What's Changed This release adds support for python 3.11 and the new selects released by Discord. [See the docs](https://docs.disnake.dev/en/stable/api.html#disnake.ui.BaseSelect) for how to use these new selects. ##### Breaking Changes - Properly document that [`Message.system_content`](https://docs.disnake.dev/en/stable/api.html#disnake.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. ([#&#8203;766](https://github.com/DisnakeDev/disnake/issues/766)) - Rename InteractionDataResolved.get() to get_by_id(). ([#&#8203;814](https://github.com/DisnakeDev/disnake/issues/814)) ##### Deprecations - Rename ApplicationCommandInteractionDataResolved to [`InteractionDataResolved`](https://docs.disnake.dev/en/stable/api.html#disnake.InteractionDataResolved). ([#&#8203;814](https://github.com/DisnakeDev/disnake/issues/814)) - \[[ext.commands](https://docs.disnake.dev/en/stable/ext/commands/index.html#discord-ext-commands)] Deprecate the sync_commands, sync_commands_debug, and sync_commands_on_cog_unload parameters of [Bot](https://docs.disnake.dev/en/stable/ext/commands/api.html#disnake.ext.commands.Bot) and [`InteractionBot`](https://docs.disnake.dev/en/stable/ext/commands/api.html#disnake.ext.commands.InteractionBot). These have been replaced with the command_sync_flags parameter which takes a [`CommandSyncFlags`](https://docs.disnake.dev/en/stable/ext/commands/api.html#disnake.ext.commands.CommandSyncFlags) instance. ([#&#8203;806](https://github.com/DisnakeDev/disnake/issues/806)) ##### New Features - Update [`Message.system_content`](https://docs.disnake.dev/en/stable/api.html#disnake.Message.system_content) to be accurate to the client as of October 2022. ([#&#8203;766](https://github.com/DisnakeDev/disnake/issues/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. ([#&#8203;778](https://github.com/DisnakeDev/disnake/issues/778)) - Add [`GuildScheduledEvent.start()`](https://docs.disnake.dev/en/stable/api.html#disnake.GuildScheduledEvent.start), [`.end`](https://docs.disnake.dev/en/stable/api.html#disnake.GuildScheduledEvent.end) and [`.cancel`](https://docs.disnake.dev/en/stable/api.html#disnake.GuildScheduledEvent.cancel) shortcuts. ([#&#8203;781](https://github.com/DisnakeDev/disnake/issues/781)) - Support Python 3.11. ([#&#8203;785](https://github.com/DisnakeDev/disnake/issues/785), [#&#8203;827](https://github.com/DisnakeDev/disnake/issues/827), [#&#8203;829](https://github.com/DisnakeDev/disnake/issues/829), [#&#8203;833](https://github.com/DisnakeDev/disnake/issues/833)) - Improve the cli, allowing the usage of [`ext.commands.InteractionBot`](https://docs.disnake.dev/en/stable/ext/commands/api.html#disnake.ext.commands.InteractionBot), [`ext.commands.AutoShardedInteractionBot`](https://docs.disnake.dev/en/stable/ext/commands/api.html#disnake.ext.commands.AutoShardedInteractionBot). ([#&#8203;791](https://github.com/DisnakeDev/disnake/issues/791)) - Add new select menu components. ([#&#8203;800](https://github.com/DisnakeDev/disnake/issues/800), [#&#8203;803](https://github.com/DisnakeDev/disnake/issues/803)) - Add new [`ComponentType`](https://docs.disnake.dev/en/stable/api.html#disnake.ComponentType) values. - Add [`UserSelectMenu`](https://docs.disnake.dev/en/stable/api.html#disnake.UserSelectMenu), [`RoleSelectMenu`](https://docs.disnake.dev/en/stable/api.html#disnake.RoleSelectMenu), [`MentionableSelectMenu`](https://docs.disnake.dev/en/stable/api.html#disnake.MentionableSelectMenu), [`ChannelSelectMenu`](https://docs.disnake.dev/en/stable/api.html#disnake.ChannelSelectMenu) components. - Add [`ui.UserSelect`](https://docs.disnake.dev/en/stable/api.html#disnake.ui.UserSelect), [`ui.RoleSelect`](https://docs.disnake.dev/en/stable/api.html#disnake.ui.RoleSelect), [`ui.MentionableSelect`](https://docs.disnake.dev/en/stable/api.html#disnake.ui.MentionableSelect), [`ui.ChannelSelect`](https://docs.disnake.dev/en/stable/api.html#disnake.ui.ChannelSelect) UI types. - Add [`ui.user_select()`](https://docs.disnake.dev/en/stable/api.html#disnake.ui.user_select), [`ui.role_select()`](https://docs.disnake.dev/en/stable/api.html#disnake.ui.role_select), [`ui.mentionable_select()`](https://docs.disnake.dev/en/stable/api.html#disnake.ui.mentionable_select), [`ui.channel_select()`](https://docs.disnake.dev/en/stable/api.html#disnake.ui.channel_select) decorators. - Add [`ui.ActionRow.add_user_select()`](https://docs.disnake.dev/en/stable/api.html#disnake.ui.ActionRow.add_user_select), [`add_role_select()`](https://docs.disnake.dev/en/stable/api.html#disnake.ui.ActionRow.add_role_select), [`add_mentionable_select()`](https://docs.disnake.dev/en/stable/api.html#disnake.ui.ActionRow.add_mentionable_select), [`add_channel_select()`](https://docs.disnake.dev/en/stable/api.html#disnake.ui.ActionRow.add_channel_select) - Renamed string select types for clarity (previous names will continue to work): - SelectMenu -> [`StringSelectMenu`](https://docs.disnake.dev/en/stable/api.html#disnake.StringSelectMenu) - ui.Select -> [`ui.StringSelect`](https://docs.disnake.dev/en/stable/api.html#disnake.ui.StringSelect) - ui.select() -> [`ui.string_select()`](https://docs.disnake.dev/en/stable/api.html#disnake.ui.string_select) - ui.ActionRow.add_select() -> [`ui.ActionRow.add_string_select()`](https://docs.disnake.dev/en/stable/api.html#disnake.ui.ActionRow.add_string_select) - Add [`MessageInteraction.resolved_values`](https://docs.disnake.dev/en/stable/api.html#disnake.MessageInteraction.resolved_values) and [`MessageInteractionData.resolved`](https://docs.disnake.dev/en/stable/api.html#disnake.MessageInteractionData.resolved). - Support delete_after parameter when sending ephemeral interaction responses. ([#&#8203;816](https://github.com/DisnakeDev/disnake/issues/816)) - Allow slowmode_delay parameter of [`ForumChannel.create_thread()`](https://docs.disnake.dev/en/stable/api.html#disnake.ForumChannel.create_thread) to be optional. ([#&#8203;822](https://github.com/DisnakeDev/disnake/issues/822)) - Add suppress_embeds parameter to [`Interaction.edit_original_response()`](https://docs.disnake.dev/en/stable/api.html#disnake.Interaction.edit_original_response) and [`InteractionMessage.edit()`](https://docs.disnake.dev/en/stable/api.html#disnake.InteractionMessage.edit). ([#&#8203;832](https://github.com/DisnakeDev/disnake/issues/832)) - \[[ext.commands](https://docs.disnake.dev/en/stable/ext/commands/index.html#discord-ext-commands)] Add [`CommandSyncFlags`](https://docs.disnake.dev/en/stable/ext/commands/api.html#disnake.ext.commands.CommandSyncFlags) to provide sync configuration to [Bot](https://docs.disnake.dev/en/stable/ext/commands/api.html#disnake.ext.commands.Bot) and [`InteractionBot`](https://docs.disnake.dev/en/stable/ext/commands/api.html#disnake.ext.commands.InteractionBot) (and their autosharded variants) as command_sync_flags. ([#&#8203;265](https://github.com/DisnakeDev/disnake/issues/265), [#&#8203;433](https://github.com/DisnakeDev/disnake/issues/433), [#&#8203;468](https://github.com/DisnakeDev/disnake/issues/468), [#&#8203;806](https://github.com/DisnakeDev/disnake/issues/806)) ##### Bug Fixes - Add the missing attributes for [`PermissionOverwrite`](https://docs.disnake.dev/en/stable/api.html#disnake.PermissionOverwrite): use_application_commands and use_embedded_activities. ([#&#8203;777](https://github.com/DisnakeDev/disnake/issues/777)) - Ensure that embed fields are copied properly by [`Embed.copy()`](https://docs.disnake.dev/en/stable/api.html#disnake.Embed.copy) and that the copied embed is completely separate from the original one. ([#&#8203;792](https://github.com/DisnakeDev/disnake/issues/792)) - Fix an issue with [`Member.ban()`](https://docs.disnake.dev/en/stable/api.html#disnake.Member.ban) erroring when the delete_message_days parameter was provided. ([#&#8203;810](https://github.com/DisnakeDev/disnake/issues/810)) - Try to get threads used in interactions (like threads in command arguments) from the cache first, before creating a new instance. ([#&#8203;814](https://github.com/DisnakeDev/disnake/issues/814)) - Fix creation of threads in text channels without [`Permissions.manage_threads`](https://docs.disnake.dev/en/stable/api.html#disnake.Permissions.manage_threads). ([#&#8203;818](https://github.com/DisnakeDev/disnake/issues/818)) - Fix off-by-one error in [`AutoModKeywordPresets`](https://docs.disnake.dev/en/stable/api.html#disnake.AutoModKeywordPresets) values. ([#&#8203;820](https://github.com/DisnakeDev/disnake/issues/820)) - Update event loop handling to avoid warnings when running on Python 3.11. ([#&#8203;827](https://github.com/DisnakeDev/disnake/issues/827)) - \[[ext.commands](https://docs.disnake.dev/en/stable/ext/commands/index.html#discord-ext-commands)] Fix a case where optional variadic arguments could have infinite loops in parsing depending on the user input. ([#&#8203;825](https://github.com/DisnakeDev/disnake/issues/825)) ##### Documentation - Speed up page load by changing hoverxref tooltips to be lazily loaded. ([#&#8203;393](https://github.com/DisnakeDev/disnake/issues/393)) - Remove reference to the v1.0 migration guide from the main index page, and move legacy changelogs to a separate page. ([#&#8203;697](https://github.com/DisnakeDev/disnake/issues/697)) - Update sphinx from version 5.1 to 5.3. ([#&#8203;764](https://github.com/DisnakeDev/disnake/issues/764), [#&#8203;821](https://github.com/DisnakeDev/disnake/issues/821))Add a note warning mentioning that using a [`disnake.File`](https://docs.disnake.dev/en/stable/api.html#disnake.File) object as file kwarg makes a [`disnake.Embed`](https://docs.disnake.dev/en/stable/api.html#disnake.Embed) not reusable. ([#&#8203;786](https://github.com/DisnakeDev/disnake/issues/786)) - Update broken Discord API Docs links, add :ddocs: role for easily creating links to the API documentation. ([#&#8203;793](https://github.com/DisnakeDev/disnake/issues/793)) - Add a custom 404 page for when the navigated page does not exist. ([#&#8203;797](https://github.com/DisnakeDev/disnake/issues/797)) ##### Miscellaneous - Increase the upper bound for the aiohttp dependency from <3.9 to <4. ([#&#8203;789](https://github.com/DisnakeDev/disnake/issues/789)) - Use importlib.metadata instead of the deprecated pkg_resources in the cli for displaying the version. ([#&#8203;791](https://github.com/DisnakeDev/disnake/issues/791)) - \[[ext.commands](https://docs.disnake.dev/en/stable/ext/commands/index.html#discord-ext-commands)] Add missing py.typed marker. ([#&#8203;784](https://github.com/DisnakeDev/disnake/issues/784)) - \[[ext.tasks](https://docs.disnake.dev/en/stable/ext/tasks/index.html#discord-ext-tasks)] Add missing py.typed marker. ([#&#8203;784](https://github.com/DisnakeDev/disnake/issues/784)) *** **Full changelog**: https://docs.disnake.dev/en/stable/whats_new.html#v2-7-0 **Git history**: https://github.com/DisnakeDev/disnake/compare/v2.6.0...v2.7.0 ### [`v2.6.2`](https://github.com/DisnakeDev/disnake/releases/tag/v2.6.2) [Compare Source](https://github.com/DisnakeDev/disnake/compare/v2.6.1...v2.6.2) ##### Bug Fixes - Fix creation of threads in text channels without [`Permissions.manage_threads`](https://docs.disnake.dev/en/v2.6.2/api.html#disnake.Permissions.manage_threads). ([#&#8203;818](https://github.com/DisnakeDev/disnake/issues/818)) - Fix off-by-one error in [`AutoModKeywordPresets`](https://docs.disnake.dev/en/v2.6.2/api.html#disnake.AutoModKeywordPresets) values. ([#&#8203;820](https://github.com/DisnakeDev/disnake/issues/820)) - \[[ext.commands](https://docs.disnake.dev/en/v2.6.2/ext/commands/index.html#discord-ext-commands)] Fix a case where optional variadic arguments could have infinite loops in parsing depending on the user input. ([#&#8203;825](https://github.com/DisnakeDev/disnake/issues/825)) *** Full changelog: https://docs.disnake.dev/en/v2.6.2/whats_new.html#v2-6-2 Git history: https://github.com/DisnakeDev/disnake/compare/v2.6.1...v2.6.2 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMy4wIiwidXBkYXRlZEluVmVyIjoiMzQuMTMuMCJ9-->
Xefir added 1 commit 2022-11-02 10:06:38 +00:00
Update dependency disnake to v2.7.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
1408a00ac9
Xefir merged commit e63062cadf into master 2022-11-02 10:32:53 +00:00
Xefir deleted branch renovate/disnake-2.x 2022-11-02 10:33:05 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Xefir/Divent#76
No description provided.