Update dependency py-cord to v2.6.1 #64

Open
renovate[bot] wants to merge 1 commit from renovate/py-cord-2.x into master
renovate[bot] commented 2024-07-15 01:42:21 +00:00 (Migrated from github.com)

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
py-cord (changelog) ==2.5.0 -> ==2.6.1 age adoption passing confidence

Release Notes

Pycord-Development/pycord (py-cord)

v2.6.1

Compare Source

Fixed
  • Fixed premature garbage collection of tasks.
    (#​2510)
  • Fixed EntitlementIterator type hints and behavior with limit > 100.
    (#​2555)
  • Fixed missing stacklevel parameter in warn_deprecated function call inside
    @utils.deprecated. (#​2500)
  • Fixed the type hint in ConnectionState._polls to reflect actual behavior, changing
    it from Guild to Poll.
    (#​2500)
  • Fixed missing __slots__ attributes in RawReactionClearEmojiEvent and
    RawMessagePollVoteEvent.
    (#​2500)
  • Fixed the type of ForumChannel.default_sort_order, changing it from int to
    SortOrder. (#​2500)
  • Fixed PartialMessage causing errors when created from PartialMessageable.
    (#​2568)
  • Fixed the guild attribute of Members received from a UserCommand being None.
    (#​2573)
  • Fixed Webhook.send, which did not include attachment data.
    (#​2513)
  • Fixed inverted type hints in CheckAnyFailure.
    (#​2502)

v2.6.0

Compare Source

Added
  • Added banner parameter to ClientUser.edit.
    (#​2396)
  • Added user argument to Paginator.edit.
    (#​2390)
  • Added bridge_option decorator. Required for bridge.Bot in 2.7.
    (#​2417)
  • Added Guild.search_members.
    (#​2418)
  • Added bulk banning up to 200 users through Guild.bulk_ban.
    (#​2421)
  • Added member data to the raw_reaction_remove event.
    (#​2412)
  • Added Poll and all related features.
    (#​2408)
  • Added stacklevel param to utils.warn_deprecated and utils.deprecated.
    (#​2450)
  • Added support for user-installable applications.
    (#​2409)
  • Added support for one-time purchases for Discord monetization.
    (#​2438)
  • Added Attachment.title.
    (#​2486)
  • Added MemberFlags. (#​2489)
  • Added bypass_verification parameter to Member.edit.
    (#​2489)
  • Added RoleFlags. (#​2487)
  • Added MessageCall information.
    (#​2488)
Fixed
  • Fixed the type-hinting of Member.move_to and Member.edit to reflect actual
    behavior. (#​2386)
  • Fixed a deprecation warning from being displayed when running python -m discord -v
    by replacing the deprecated module.
    (#​2392)
  • Fixed Paginator.edit to no longer set user to the bot.
    (#​2390)
  • Fixed NameError in some instances of Interaction.
    (#​2402)
  • Fixed interactions being ignored due to PartialMessage.id being of type str.
    (#​2406)
  • Fixed the type-hinting of ScheduledEvent.subscribers to reflect actual behavior.
    (#​2400)
  • Fixed ScheduledEvent.subscribers behavior with limit=None.
    (#​2407)
  • Fixed invalid data being passed to Interaction._guild in certain cases.
    (#​2411)
  • Fixed option type hints being ignored when using parameter_name.
    (#​2417)
  • Fixed parameter embed=None causing AttributeError on PartialMessage.edit.
    (#​2446)
  • Fixed paginator to revert state if a page update callback fails.
    (#​2448)
  • Fixed missing application_id in Entitlement.delete.
    (#​2458)
  • Fixed issues with enums as Option types with long descriptions or too many values.
    (#​2463)
  • Fixed many inaccurate type hints throughout the library.
    (#​2457)
  • Fixed AttributeError due to discord.Option being initialised with input_type set
    to None. (#​2464)
  • Fixed remove_application_command causing issues while reloading extensions.
    (#​2480)
  • Fixed outdated logic for filtering and sorting audit log entries.
    (#​2371)
  • Further fixed logic when fetching audit logs.
    (#​2492)
Changed
  • Changed the type of Guild.bitrate_limit to int.
    (#​2387)
  • HTTP requests that fail with a 503 status are now retried.
    (#​2395)
  • option decorator now accepts input_type.
    (#​2417)
  • Option may be used instead of BridgeOption until 2.7.
    (#​2417)
  • Guild.query_members now accepts limit=None to retrieve all members.
    (#​2419)
  • ApplicationCommand.guild_only is now deprecated in favor of
    ApplicationCommand.contexts.
    (#​2409)
  • Message.interaction is now deprecated in favor of Message.interaction_metadata.
    (#​2409)
  • Replaced Client.fetch_entitlements with Client.entitlements, which returns an
    EntitlementIterator.
    (#​2490)
  • Changed the error message that appears when attempting to add a subcommand group to a
    subcommand group. (#​2275)
Removed
  • Removed the delete_message_days parameter from ban methods. Please use
    delete_message_seconds instead.
    (#​2421)
  • Removed the oldest_first parameter from Guild.audit_logs in favor of the before
    and after parameters.
    (#​2371)
  • Removed the vanity_code parameter from Guild.edit.
    (#​2491)

Configuration

📅 Schedule: Branch creation - "* 0-3 * * 1" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, 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 was generated by Mend Renovate. View the repository job log.

This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [py-cord](https://redirect.github.com/Pycord-Development/pycord) ([changelog](https://docs.pycord.dev/en/master/changelog.html)) | `==2.5.0` -> `==2.6.1` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/py-cord/2.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/py-cord/2.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/py-cord/2.5.0/2.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/py-cord/2.5.0/2.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>Pycord-Development/pycord (py-cord)</summary> ### [`v2.6.1`](https://redirect.github.com/Pycord-Development/pycord/blob/HEAD/CHANGELOG.md#261---2024-09-15) [Compare Source](https://redirect.github.com/Pycord-Development/pycord/compare/v2.6.0...v2.6.1) ##### Fixed - Fixed premature garbage collection of tasks. ([#&#8203;2510](https://redirect.github.com/Pycord-Development/pycord/pull/2510)) - Fixed `EntitlementIterator` type hints and behavior with `limit > 100`. ([#&#8203;2555](https://redirect.github.com/Pycord-Development/pycord/pull/2555)) - Fixed missing `stacklevel` parameter in `warn_deprecated` function call inside `@utils.deprecated`. ([#&#8203;2500](https://redirect.github.com/Pycord-Development/pycord/pull/2500)) - Fixed the type hint in `ConnectionState._polls` to reflect actual behavior, changing it from `Guild` to `Poll`. ([#&#8203;2500](https://redirect.github.com/Pycord-Development/pycord/pull/2500)) - Fixed missing `__slots__` attributes in `RawReactionClearEmojiEvent` and `RawMessagePollVoteEvent`. ([#&#8203;2500](https://redirect.github.com/Pycord-Development/pycord/pull/2500)) - Fixed the type of `ForumChannel.default_sort_order`, changing it from `int` to `SortOrder`. ([#&#8203;2500](https://redirect.github.com/Pycord-Development/pycord/pull/2500)) - Fixed `PartialMessage` causing errors when created from `PartialMessageable`. ([#&#8203;2568](https://redirect.github.com/Pycord-Development/pycord/pull/2500)) - Fixed the `guild` attribute of `Member`s received from a `UserCommand` being `None`. ([#&#8203;2573](https://redirect.github.com/Pycord-Development/pycord/pull/2573)) - Fixed `Webhook.send`, which did not include attachment data. ([#&#8203;2513](https://redirect.github.com/Pycord-Development/pycord/pull/2513)) - Fixed inverted type hints in `CheckAnyFailure`. ([#&#8203;2502](https://redirect.github.com/Pycord-Development/pycord/pull/2502)) ### [`v2.6.0`](https://redirect.github.com/Pycord-Development/pycord/blob/HEAD/CHANGELOG.md#260---2024-07-09) [Compare Source](https://redirect.github.com/Pycord-Development/pycord/compare/v2.5.0...v2.6.0) ##### Added - Added `banner` parameter to `ClientUser.edit`. ([#&#8203;2396](https://redirect.github.com/Pycord-Development/pycord/pull/2396)) - Added `user` argument to `Paginator.edit`. ([#&#8203;2390](https://redirect.github.com/Pycord-Development/pycord/pull/2390)) - Added `bridge_option` decorator. Required for `bridge.Bot` in 2.7. ([#&#8203;2417](https://redirect.github.com/Pycord-Development/pycord/pull/2417)) - Added `Guild.search_members`. ([#&#8203;2418](https://redirect.github.com/Pycord-Development/pycord/pull/2418)) - Added bulk banning up to 200 users through `Guild.bulk_ban`. ([#&#8203;2421](https://redirect.github.com/Pycord-Development/pycord/pull/2421)) - Added `member` data to the `raw_reaction_remove` event. ([#&#8203;2412](https://redirect.github.com/Pycord-Development/pycord/pull/2412)) - Added `Poll` and all related features. ([#&#8203;2408](https://redirect.github.com/Pycord-Development/pycord/pull/2408)) - Added `stacklevel` param to `utils.warn_deprecated` and `utils.deprecated`. ([#&#8203;2450](https://redirect.github.com/Pycord-Development/pycord/pull/2450)) - Added support for user-installable applications. ([#&#8203;2409](https://redirect.github.com/Pycord-Development/pycord/pull/2409)) - Added support for one-time purchases for Discord monetization. ([#&#8203;2438](https://redirect.github.com/Pycord-Development/pycord/pull/2438)) - Added `Attachment.title`. ([#&#8203;2486](https://redirect.github.com/Pycord-Development/pycord/pull/2486)) - Added `MemberFlags`. ([#&#8203;2489](https://redirect.github.com/Pycord-Development/pycord/pull/2489)) - Added `bypass_verification` parameter to `Member.edit`. ([#&#8203;2489](https://redirect.github.com/Pycord-Development/pycord/pull/2489)) - Added `RoleFlags`. ([#&#8203;2487](https://redirect.github.com/Pycord-Development/pycord/pull/2487)) - Added `MessageCall` information. ([#&#8203;2488](https://redirect.github.com/Pycord-Development/pycord/pull/2488)) ##### Fixed - Fixed the type-hinting of `Member.move_to` and `Member.edit` to reflect actual behavior. ([#&#8203;2386](https://redirect.github.com/Pycord-Development/pycord/pull/2386)) - Fixed a deprecation warning from being displayed when running `python -m discord -v` by replacing the deprecated module. ([#&#8203;2392](https://redirect.github.com/Pycord-Development/pycord/pull/2392)) - Fixed `Paginator.edit` to no longer set user to the bot. ([#&#8203;2390](https://redirect.github.com/Pycord-Development/pycord/pull/2390)) - Fixed `NameError` in some instances of `Interaction`. ([#&#8203;2402](https://redirect.github.com/Pycord-Development/pycord/pull/2402)) - Fixed interactions being ignored due to `PartialMessage.id` being of type `str`. ([#&#8203;2406](https://redirect.github.com/Pycord-Development/pycord/pull/2406)) - Fixed the type-hinting of `ScheduledEvent.subscribers` to reflect actual behavior. ([#&#8203;2400](https://redirect.github.com/Pycord-Development/pycord/pull/2400)) - Fixed `ScheduledEvent.subscribers` behavior with `limit=None`. ([#&#8203;2407](https://redirect.github.com/Pycord-Development/pycord/pull/2407)) - Fixed invalid data being passed to `Interaction._guild` in certain cases. ([#&#8203;2411](https://redirect.github.com/Pycord-Development/pycord/pull/2411)) - Fixed option type hints being ignored when using `parameter_name`. ([#&#8203;2417](https://redirect.github.com/Pycord-Development/pycord/pull/2417)) - Fixed parameter `embed=None` causing `AttributeError` on `PartialMessage.edit`. ([#&#8203;2446](https://redirect.github.com/Pycord-Development/pycord/pull/2446)) - Fixed paginator to revert state if a page update callback fails. ([#&#8203;2448](https://redirect.github.com/Pycord-Development/pycord/pull/2448)) - Fixed missing `application_id` in `Entitlement.delete`. ([#&#8203;2458](https://redirect.github.com/Pycord-Development/pycord/pull/2458)) - Fixed issues with enums as `Option` types with long descriptions or too many values. ([#&#8203;2463](https://redirect.github.com/Pycord-Development/pycord/pull/2463)) - Fixed many inaccurate type hints throughout the library. ([#&#8203;2457](https://redirect.github.com/Pycord-Development/pycord/pull/2457)) - Fixed `AttributeError` due to `discord.Option` being initialised with `input_type` set to `None`. ([#&#8203;2464](https://redirect.github.com/Pycord-Development/pycord/pull/2464)) - Fixed `remove_application_command` causing issues while reloading extensions. ([#&#8203;2480](https://redirect.github.com/Pycord-Development/pycord/pull/2480)) - Fixed outdated logic for filtering and sorting audit log entries. ([#&#8203;2371](https://redirect.github.com/Pycord-Development/pycord/pull/2371)) - Further fixed logic when fetching audit logs. ([#&#8203;2492](https://redirect.github.com/Pycord-Development/pycord/pull/2492)) ##### Changed - Changed the type of `Guild.bitrate_limit` to `int`. ([#&#8203;2387](https://redirect.github.com/Pycord-Development/pycord/pull/2387)) - HTTP requests that fail with a 503 status are now retried. ([#&#8203;2395](https://redirect.github.com/Pycord-Development/pycord/pull/2395)) - `option` decorator now accepts `input_type`. ([#&#8203;2417](https://redirect.github.com/Pycord-Development/pycord/pull/2417)) - `Option` may be used instead of `BridgeOption` until 2.7. ([#&#8203;2417](https://redirect.github.com/Pycord-Development/pycord/pull/2417)) - `Guild.query_members` now accepts `limit=None` to retrieve all members. ([#&#8203;2419](https://redirect.github.com/Pycord-Development/pycord/pull/2419)) - `ApplicationCommand.guild_only` is now deprecated in favor of `ApplicationCommand.contexts`. ([#&#8203;2409](https://redirect.github.com/Pycord-Development/pycord/pull/2409)) - `Message.interaction` is now deprecated in favor of `Message.interaction_metadata`. ([#&#8203;2409](https://redirect.github.com/Pycord-Development/pycord/pull/2409)) - Replaced `Client.fetch_entitlements` with `Client.entitlements`, which returns an `EntitlementIterator`. ([#&#8203;2490](https://redirect.github.com/Pycord-Development/pycord/pull/2490)) - Changed the error message that appears when attempting to add a subcommand group to a subcommand group. ([#&#8203;2275](https://redirect.github.com/Pycord-Development/pycord/pull/2275)) ##### Removed - Removed the `delete_message_days` parameter from ban methods. Please use `delete_message_seconds` instead. ([#&#8203;2421](https://redirect.github.com/Pycord-Development/pycord/pull/2421)) - Removed the `oldest_first` parameter from `Guild.audit_logs` in favor of the `before` and `after` parameters. ([#&#8203;2371](https://redirect.github.com/Pycord-Development/pycord/pull/2371)) - Removed the `vanity_code` parameter from `Guild.edit`. ([#&#8203;2491](https://redirect.github.com/Pycord-Development/pycord/pull/2491)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "* 0-3 * * 1" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, 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 was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/kharms-dev/discord-power-bot). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzEuNCIsInVwZGF0ZWRJblZlciI6IjM5LjQyLjQiLCJ0YXJnZXRCcmFuY2giOiJtYXN0ZXIiLCJsYWJlbHMiOltdfQ==-->
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/py-cord-2.x:renovate/py-cord-2.x
git switch renovate/py-cord-2.x

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff renovate/py-cord-2.x
git switch renovate/py-cord-2.x
git rebase master
git switch master
git merge --ff-only renovate/py-cord-2.x
git switch renovate/py-cord-2.x
git rebase master
git switch master
git merge --no-ff renovate/py-cord-2.x
git switch master
git merge --squash renovate/py-cord-2.x
git switch master
git merge --ff-only renovate/py-cord-2.x
git switch master
git merge renovate/py-cord-2.x
git push origin master
Sign in to join this conversation.
No description provided.