Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use is when checking against an object's identity #862

Merged
merged 1 commit into from
Jan 27, 2022
Merged

Use is when checking against an object's identity #862

merged 1 commit into from
Jan 27, 2022

Conversation

rtk-rnjn
Copy link
Contributor

No description provided.

@VincentRPS VincentRPS added this to the v2.0 milestone Jan 26, 2022
@VincentRPS VincentRPS added Merge normally priority: low Low Priority status: awaiting review Awaiting review from a maintainer labels Jan 26, 2022
@rtk-rnjn
Copy link
Contributor Author

Well, I think the logic should be used like this:

# m = (None if msg is None else _utils_get(msg.mentions, id=id)) or ctx.guild.get_member(id)
m = (_utils_get(msg.members, id=id) if msg is not None else None) or ctx.guild.get_member(id)

@BobDotCom BobDotCom merged commit 3c3b8cf into Pycord-Development:master Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: low Low Priority status: awaiting review Awaiting review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants