Skip to content

feat: Implement better get_or_fetch#2776

Merged
Lulalaby merged 142 commits into
Pycord-Development:masterfrom
Lumabots:get_or_fetch
Oct 20, 2025
Merged

feat: Implement better get_or_fetch#2776
Lulalaby merged 142 commits into
Pycord-Development:masterfrom
Lumabots:get_or_fetch

Conversation

@Lumabots

@Lumabots Lumabots commented May 3, 2025

Copy link
Copy Markdown
Contributor

Summary

Information

  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters). Implement better get_or_fetch #1856
  • 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.

@Lumabots

Lumabots commented May 3, 2025

Copy link
Copy Markdown
Contributor Author

feat from #1856

Comment thread discord/utils.py Outdated
@Lumabots

Lumabots commented May 3, 2025

Copy link
Copy Markdown
Contributor Author

still not ready have some bug like : NameError: name 'VoiceChannel' is not defined
ig because of the type checking, i'll have to find a way to import it without circular import

@Paillat-dev

Copy link
Copy Markdown
Member

@Lumabots You can import it inside of the function where you use it directly instead of importing it at the top

@Lumabots

Lumabots commented May 3, 2025

Copy link
Copy Markdown
Contributor Author

@Lumabots You can import it inside of the function where you use it directly instead of importing it at the top

Well ig the issue come from the definition for the typevar, so will that resolve it ?

@Lumabots

Lumabots commented May 4, 2025

Copy link
Copy Markdown
Contributor Author

should be ready for review

@Lumabots

Lumabots commented May 4, 2025

Copy link
Copy Markdown
Contributor Author

just need to specify that this is breaking inside the changelog cos of modification of get_or_fetch and removal of get_or_fetch_user

Comment thread discord/utils.py
Soheab
Soheab previously approved these changes Oct 11, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread discord/utils.py
Comment thread discord/guild.py
Comment thread discord/client.py
Comment thread discord/utils.py
Comment thread discord/utils.py

@Paillat-dev Paillat-dev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Lgtm tested other than comments

Comment thread CHANGELOG.md Outdated
Comment thread discord/client.py
Comment thread discord/utils.py
Comment thread discord/utils.py Outdated
@Lumabots
Lumabots requested a review from Copilot October 19, 2025 17:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread discord/guild.py
Comment thread discord/client.py
Comment thread discord/guild.py
Comment thread discord/client.py
@Lumabots
Lumabots requested a review from Paillat-dev October 20, 2025 09:22

@Paillat-dev Paillat-dev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Lgtm tested

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.

7 participants