-
-
Notifications
You must be signed in to change notification settings - Fork 477
feat: Implement better get_or_fetch #2776
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
Open
Lumabots
wants to merge
72
commits into
Pycord-Development:master
Choose a base branch
from
Lumabots:get_or_fetch
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+281
−42
Open
Changes from all commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
dce0206
Update CHANGELOG.md
Lumabots b2b8884
add a get or fetch to guild
Lumabots 8f9a257
Implement better get_or_fetch using typevar and object
Lumabots 9f6219c
shortcut for get or fetch
Lumabots 4af5149
Update CHANGELOG.md
Lumabots 6f59fcd
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] c0689cc
usage of subclass
Lumabots b20822a
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4a363f5
add get_emoji method
Lumabots c3a7dd2
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e614c47
add get_or_fetch_emoji method
Lumabots 0c0a042
shortcut getorfetch client + removal of get_or_fetch user in favor of…
Lumabots 466e41b
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 388a234
Update utils.py
Lumabots 9737f69
Update guild.py
Lumabots 656de14
Update client.py
Lumabots 461eab7
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] b6f8878
Update utils.py
Lumabots f2a7d72
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 5d68207
add utils.deprecated
Lumabots 4ca87d8
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 9903fb7
add warning
Lumabots a1ec6f9
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 47de080
Update client.py
Lumabots 4430825
added backward support
Lumabots 010cc78
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 368a55d
fixed missing coma
Lumabots 76c56a8
ig im drunk
Lumabots 811682d
fix my drunkness
Lumabots a102d5d
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 528b84b
now im not drunk
Lumabots 7e766be
Update utils.py
Lumabots f6b8e18
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a5deffe
Update utils.py
Lumabots fff74c4
Update utils.py
Lumabots 9e45627
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 0baae1d
usage of abc
Lumabots a3aeb4b
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 2404d9c
_EmojiTag
Lumabots 23409a7
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 8f278f8
Update utils.py
Lumabots 6d5be54
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 11fbbc9
Update utils.py
Lumabots 590339a
Merge branch 'master' into get_or_fetch
Lumabots 267d574
Update discord/client.py
Lumabots dc45449
add the raise error
Lumabots f22d8a2
Update discord/utils.py
Lumabots cbb7951
Update utils.pyfix missing appemoji
Lumabots fdbb7d3
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 5b35d95
add missing raise to doc
Lumabots b8a8628
refactor: add TODO comments for removal of deprecated arguments in ge…
Lumabots ba5541e
refactor: move _FETCHABLE type variable to utils for better accessibi…
Lumabots 5421a3f
fix: update import statement for _FETCHABLE from utils module
Lumabots 50318c2
refactor: streamline get_or_fetch logic with a mapping for object types
Lumabots 541e668
fix: add validation for Guild type in get_or_fetch function
Lumabots b20cffb
fix: correct base type resolution in get_or_fetch function
Lumabots 3e94a4f
fix: add Role type support in get_or_fetch function
Lumabots 7384d7c
fix: update role retrieval methods in get_or_fetch function
Lumabots b832b55
Merge branch 'master' into get_or_fetch
Lumabots 0ffaa4b
Update CHANGELOG.md
Lumabots 92d2987
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] b8c7f7f
Update CHANGELOG.md
Lumabots 53dc93c
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 6d89376
Update CHANGELOG.md
Lumabots e2e8b3d
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 2abfba2
Update CHANGELOG.md
Lumabots fb9e077
Merge branch 'master' into get_or_fetch
Lumabots c60fbab
feat: update get_or_fetch method to accept Optional[int] for object_id
Lumabots 29863f4
Merge branch 'master' into get_or_fetch
Lumabots 4a5eca4
fix: "MISSING" not being exported
Lumabots 2ed0de6
Merge branch 'master' into get_or_fetch
Lumabots 0c99851
Merge branch 'master' into get_or_fetch
Lumabots File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.