Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 25, 2025

Bumps py-cord from 2.6.1 to 2.7.0.

Release notes

Sourced from py-cord's releases.

v2.7.0

Summary

  • Big features: voice messages, message forwarding, components v2 with modal selects/FileUpload, subscriptions, incident parsing, app emojis, message pin updates, default_values for selects, positional flags, better get_or_fetch.
  • Platform: dropped Python 3.8/3.9; added Python 3.13; capped <3.14.
  • API additions: Guild.fetch_role, fetch_roles_member_counts, with_response for interactions, elapsed voice playback time, Message._raw_data, nameplates/role gradient colors/new guild feature flags, datetime.time formatting, audit log communication_disabled_until, app/base URL overrides.
  • Stability: many fixes for webhook/interaction/paginator/component edge cases; voice crash/encryption/FFmpeg fast-forward; command syncing and cooldowns; attachment metadata/urls; locale and missing-file handling; regex warnings.
  • Typing & docs: broad type-hint corrections (Select, Role edit, Option/Flag parsing, ApplicationContext, PermissionOverwrite), docstring and changelog cleanups, Sphinx autodoc tweaks, clearer asset/attachment hashes and latency/timeout docs.
  • QoL: chunked attachment downloads, respect user warning filters, reduced dead code/circular imports, refined nameplate assets API, cache/property tidying.

What's Changed

... (truncated)

Changelog

Sourced from py-cord's changelog.

[2.7.0] - 2025-12-24

Added

  • Added Attachment.read_chunked and added optional chunksize argument to Attachment.save for retrieving attachments in chunks. (#2956)
  • Added Guild.fetch_roles_member_counts method and GuildRoleCounts class. (#3020)
  • Implemented with_response for interaction callbacks, adding Interaction.callback.is_loading() and Interaction.callback.is_ephemeral(). (#2711)
  • Added RawMessageUpdateEvent.new_message - message update events now contain full message objects (#2780)
  • Added Guild.get_or_fetch() and Client.get_or_fetch() shortcut methods. (#2776)
  • Added support for setting guild-specific avatar, banner, and bio for the bot user through Member.edit. (#2908)
  • Added support for select default values. (#2899)
    • Adds a new generic parameter to selects to type ui.Select.values return type.
    • Adds SelectDefaultValue object to create select default values.
    • Adds SelectDefaultValueType enum.
    • Adds pre-typed and pre-constructed with select_type ui.Select aliases for the different select types: ui.StringSelect, ui.UserSelect, ui.RoleSelect, ui.MentionableSelect, and ui.ChannelSelect.
  • Added store parameter to View and Modal classes. (#2904)
  • Added Webhook.parent and Webhook.from_interaction (#2904)
  • Added the ability to use functions with any number of optional arguments and functions returning an awaitable as Option.autocomplete. (#2914)
  • Added ui.FileUpload for modals and the FileUpload component. (#2938)
  • Added Permissions.bypass_slowmode. (#2939)
  • Added support for Guild Incidents via Guild.incidents_data and Guild.modify_incident_actions(). (#2955)
  • Added mention property to BaseEmoji. (#2972)
  • Added positional argument to commands.Flag. (#2443)
  • Added Guild.fetch_role method. (#2528)
  • Added the following AppInfo attributes: approximate_guild_count, approximate_user_install_count, custom_install_url, install_params, interactions_endpoint_url, redirect_uris, role_connections_verification_url, and

... (truncated)

Commits
  • 05cbf7d chore(release): update CHANGELOG.md for version 2.7.0
  • dc3265c fix: "fix" bandit issues
  • 34aba2c chore: empty (#3035)
  • 7bb2a2d fix(actions): rework release workflow (#3034)
  • d026418 feat: ✨ Add fetch_roles_member_counts method to Guild and corres...
  • 43b422a docs: 📝 Fixes (#3030)
  • b56b4d9 chore(deps): upgrade dependency mypy to ~=1.19.1 (#3011)
  • 7109146 chore(deps): upgrade softprops/action-gh-release action to v2.5.0 (#3014)
  • 36c388a chore(deps): upgrade crowdin/github-action action to v2.13.0 (#3015)
  • c207aa1 chore(deps): upgrade actions/upload-artifact action to v6 (#3027)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Dec 25, 2025
@coderabbitai
Copy link

coderabbitai bot commented Dec 25, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Bumps [py-cord](https://github.com/Pycord-Development/pycord) from 2.6.1 to 2.7.0.
- [Release notes](https://github.com/Pycord-Development/pycord/releases)
- [Changelog](https://github.com/Pycord-Development/pycord/blob/master/CHANGELOG.md)
- [Commits](Pycord-Development/pycord@v2.6.1...v2.7.0)

---
updated-dependencies:
- dependency-name: py-cord
  dependency-version: 2.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/pip/dev/py-cord-2.7.0 branch from 421ecfe to 7397c29 Compare January 3, 2026 06:57
@winstonsung
Copy link
Collaborator

************* Module cog.class_role
cog/class_role.py:56:12: W0223: Method 'clear_items' is abstract in class 'ItemInterface' but is not overridden in child class 'TokenModal' (abstract-method)

************* Module cog.ctf
cog/ctf.py:67:12: W0223: Method 'clear_items' is abstract in class 'ItemInterface' but is not overridden in child class 'SubmitModal' (abstract-method)

@YuevUwU
Copy link
Collaborator

YuevUwU commented Jan 3, 2026

Their example (changes) is based on the new DesignerModal (v2 modal) which is still not implement it.

So...there may be 3 methods

  • implement it with return super().clear_items() with comment
    • This provides the flexibility if py-cord wanna implement something to it
    • If we really need to implement it manually in the future, we won't easily get the noticr by error, which uses the default implementation
  • implement it with return NotImplementedError
    • This is the current "fact"
    • We will get notice if they use it. But the availability will break.
  • #pylint: disable=W0223 on the class
    • This may also suppress other abstract method implementation notices.

I found there is a comment mentioned it on Nov. 7, 2025, in Pycord Official Discord, and maybe no result, just mentioned it.
And maybe no GitHub post it currently.

If we really want to fix pycord itself, we have to confirm these thing (from code or asking)

  • Will ItemInterface have other usage using clear_items? (the current usage is only for View)
  • Is this method an implement needs or Discord needs?
  • Should it exist semantically?
  • Is there any way to suppress the pylint warning without pylint-specific suppression? (cuz pycord only use pylint for basic static checking. also, can the supression affect the client?)
    So...is there anyone submitting it to dev teams or think it should not be resolved or sth...

How do you think, @winstonsung ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants