fix: remove internal use of deprecated role type methods#3167
Merged
Lulalaby merged 18 commits intoPycord-Development:masterfrom Mar 30, 2026
Merged
Conversation
|
Thanks for opening this pull request! This pull request can be checked-out with: git fetch origin pull/3167/head:pr-3167
git checkout pr-3167This pull request can be installed with: pip install git+https://github.com/Pycord-Development/pycord@refs/pull/3167/head |
…ated-method-use' into fix/internal-deprecated-method-use
Member
|
My fault... |
Contributor
Author
|
I'm assuming I need a changelog entry this time as theres an entry for 2.8.0rc1 and the problem was introduced before this |
Lulalaby
previously approved these changes
Mar 22, 2026
Contributor
|
Should use |
Paillat-dev
requested changes
Mar 22, 2026
Member
Paillat-dev
left a comment
There was a problem hiding this comment.
Yes needs a changelog as well.
Also please hold till I take a better look
…ated-method-use' into fix/internal-deprecated-method-use
Signed-off-by: Revnoplex <62947003+Revnoplex@users.noreply.github.com>
Paillat-dev
reviewed
Mar 23, 2026
Co-authored-by: Paillat <jeremiecotti@ik.me> Signed-off-by: Revnoplex <62947003+Revnoplex@users.noreply.github.com>
Contributor
Author
|
What testing needs to be done? |
Member
|
Not by you, I just wanna check that everything works as expected. hold: testing is there for other maintainers to signal to them to wait. Should all be alright though. |
…ecated-method-use
Lulalaby
approved these changes
Mar 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Caution
Feature freeze is active, as described by our Release Schedule.
Summary
#2708 deprecated the use of certain role type methods (eg. Role.is_premium_subscriber) in favour of the
RoleTypeenum. Now I found the library throwing several deprecation warnings when firing theon_guild_updateevent and upon tracing the lines the warnings were emitted from found several uses of the old methods. This pr replaces the found internal usage of these old methods.Information
examples, ...).
Checklist
type: ignorecomments were used, a comment is also left explaining why.