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

fix: miscellaneous pomelo updates #2076

Merged
merged 7 commits into from
May 17, 2023

Conversation

NeloBlivion
Copy link
Member

@NeloBlivion NeloBlivion commented May 17, 2023

Summary

  • Update User.display_name and simplify Member.display_name
  • Set global_name as None if it's an empty string
  • Adjust __str__ to avoid matching username and global_name
  • Users can have global_name set before migration
  • Some doc adjustments/clarifications

Changes to be included in the main PR's changelog.

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.
  • I have updated the changelog to include these changes.

@NeloBlivion NeloBlivion requested a review from a team as a code owner May 17, 2023 00:02
@JustaSqu1d JustaSqu1d added documentation Improvements or additions to documentation undocumented discord feature This isn't documented, might not receive support for it! python API Reflection Discords API wasn't correctly reflected in the lib labels May 17, 2023
@codecov
Copy link

codecov bot commented May 17, 2023

Codecov Report

Merging #2076 (71e7733) into pomelo (3072085) will increase coverage by 0.12%.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           pomelo    #2076      +/-   ##
==========================================
+ Coverage   33.04%   33.16%   +0.12%     
==========================================
  Files          97       97              
  Lines       19303    19115     -188     
==========================================
- Hits         6378     6340      -38     
+ Misses      12925    12775     -150     
Flag Coverage Δ
macos-latest-3.10 33.15% <0.00%> (+0.12%) ⬆️
macos-latest-3.11 33.15% <0.00%> (+0.12%) ⬆️
macos-latest-3.8 33.16% <0.00%> (+0.12%) ⬆️
macos-latest-3.9 33.16% <0.00%> (+0.12%) ⬆️
ubuntu-latest-3.10 33.15% <0.00%> (+0.12%) ⬆️
ubuntu-latest-3.11 33.15% <0.00%> (+0.12%) ⬆️
ubuntu-latest-3.8 33.16% <0.00%> (+0.12%) ⬆️
ubuntu-latest-3.9 33.16% <0.00%> (+0.12%) ⬆️
windows-latest-3.10 33.15% <0.00%> (+0.12%) ⬆️
windows-latest-3.11 33.15% <0.00%> (+0.12%) ⬆️
windows-latest-3.8 33.16% <0.00%> (+0.12%) ⬆️
windows-latest-3.9 33.16% <0.00%> (+0.12%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
discord/abc.py 22.46% <ø> (ø)
discord/member.py 32.49% <0.00%> (ø)
discord/team.py 46.51% <ø> (ø)
discord/user.py 37.68% <0.00%> (ø)

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3072085...71e7733. Read the comment docs.

discord/user.py Outdated Show resolved Hide resolved
discord/user.py Outdated Show resolved Hide resolved
discord/team.py Outdated Show resolved Hide resolved
discord/abc.py Outdated Show resolved Hide resolved
Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com>
Signed-off-by: Lala Sabathil <aiko@aitsys.dev>
@Dorukyum Dorukyum changed the title fix: Misc. pomelo updates fix: miscellaneous pomelo updates May 17, 2023
discord/user.py Outdated Show resolved Hide resolved
Signed-off-by: Lala Sabathil <aiko@aitsys.dev>
@Lulalaby Lulalaby merged commit 6ff41b9 into Pycord-Development:pomelo May 17, 2023
22 of 24 checks passed
@pullapprove4
Copy link

pullapprove4 bot commented Jul 27, 2023

Please add a changelog entry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Reflection Discords API wasn't correctly reflected in the lib documentation Improvements or additions to documentation undocumented discord feature This isn't documented, might not receive support for it!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants