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

feat: Added User.avatar_url() to get the resulting URL from a user #515

Merged
merged 5 commits into from Feb 18, 2022
Merged

feat: Added User.avatar_url() to get the resulting URL from a user #515

merged 5 commits into from Feb 18, 2022

Conversation

mAxYoLo01
Copy link
Contributor

About

This pull request is about creating a User.avatar_url() function, to return the proper User avatar URL.

Checklist

  • I've ran pre-commit to format and lint the change(s) made.
  • I've checked to make sure the change(s) work on 3.8.6 and higher.
  • This fixes/solves an Issue.
  • I've made this pull request for/as: (check all that apply)
    • Documentation
    • Breaking change
    • New feature/enhancement
    • Bugfix

Copy link
Contributor

@V3ntus V3ntus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@EdVraz EdVraz linked an issue Feb 14, 2022 that may be closed by this pull request
1 task
i0bs
i0bs previously requested changes Feb 14, 2022
interactions/api/models/user.py Outdated Show resolved Hide resolved
@mAxYoLo01 mAxYoLo01 requested a review from i0bs February 14, 2022 18:58
@ksIsCute
Copy link

ksIsCute commented Feb 15, 2022

will this conflict with bot.user at all?
edit: aswell as client.user?

@FayeDel
Copy link
Collaborator

FayeDel commented Feb 15, 2022

will this conflict with bot.user at all? edit: aswell as client.user?

This does not conflict with bot.user/client.user (It just adds a property)

Anyway, this looks good to me, I'm merging :)
Thanks for contributing!

@FayeDel FayeDel enabled auto-merge (squash) February 15, 2022 17:21
@FayeDel FayeDel enabled auto-merge (squash) February 15, 2022 17:21
@FayeDel FayeDel dismissed i0bs’s stale review February 15, 2022 17:25

Changes have been already performed.

@FayeDel FayeDel enabled auto-merge (squash) February 15, 2022 17:25
Copy link
Contributor

@V3ntus V3ntus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another LGTM!

@FayeDel FayeDel merged commit 7576679 into interactions-py:unstable Feb 18, 2022
@mAxYoLo01 mAxYoLo01 deleted the avatar_url branch February 18, 2022 13:16
i0bs pushed a commit that referenced this pull request Feb 25, 2022
)

* feat: Added User.avatar_url() to get the resulting URL from a user

* ci: correct from checks.

* fix: Make the User.avatar_url a property

* fix: remove useless import

* fix: remove wrong headers

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: DeltaX <33706469+DeltaXWizard@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[REQUEST] Get the correct avatar URL of a user
6 participants