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

Add View.get_item shortcut method #1659

Merged
merged 4 commits into from
Oct 2, 2022

Conversation

NeloBlivion
Copy link
Member

Summary

Adds a method to get an item from a View by its custom_id.
This is ultimately just a shortcut to utils.get, however it appears to be a rather common use case and as such is implemented for convenience.

Information

  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed).
  • This PR is not a code change (e.g. documentation, README, typehinting, examples, ...).

Checklist

  • I have searched the open pull requests for duplicates.
  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • If type: ignore comments were used, a comment is also left explaining why.

Lulalaby
Lulalaby previously approved these changes Oct 1, 2022
@Lulalaby Lulalaby enabled auto-merge (squash) October 1, 2022 03:40
discord/ui/view.py Outdated Show resolved Hide resolved
auto-merge was automatically disabled October 1, 2022 03:43

Head branch was pushed to by a user without write access

@BobDotCom BobDotCom enabled auto-merge (squash) October 1, 2022 03:44
@BobDotCom BobDotCom added this to the v2.2 milestone Oct 1, 2022
@BobDotCom BobDotCom added status: awaiting review Awaiting review from a maintainer feature Implements a feature labels Oct 1, 2022
BobDotCom
BobDotCom previously approved these changes Oct 1, 2022
discord/ui/view.py Outdated Show resolved Hide resolved
auto-merge was automatically disabled October 1, 2022 12:03

Head branch was pushed to by a user without write access

@BobDotCom BobDotCom enabled auto-merge (squash) October 1, 2022 13:56
@BobDotCom BobDotCom requested a review from Lulalaby October 1, 2022 13:56
@BobDotCom BobDotCom merged commit 393749f into Pycord-Development:master Oct 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Implements a feature status: awaiting review Awaiting review from a maintainer
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants