-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
Merged
Merged
Changes from all commits
Commits
Show all changes
142 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 dffef1f
Merge branch 'master' into get_or_fetch
Lumabots f81a338
add some more comment
Lumabots cc273c2
Update utils.py
Lumabots 0302fcd
Merge branch 'master' into get_or_fetch
Lumabots 2837e94
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 1149c0a
Merge branch 'master' into get_or_fetch
Lumabots 16fda2a
Merge branch 'master' into get_or_fetch
Lulalaby b70c666
Update discord/utils.py
Lumabots 198556d
Update discord/utils.py
Lumabots 91b3d68
comment
Lumabots cb38bd7
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f13e86c
fix docs
Lumabots 543dec8
Merge branch 'get_or_fetch' of https://github.com/Lumabots/pycord int…
Lumabots da59485
Update discord/client.py
Lumabots fa0efba
usage of literal None
Lumabots b6ff5f3
Merge branch 'get_or_fetch' of https://github.com/Lumabots/pycord int…
Lumabots 7d12503
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 77b2a18
Merge branch 'master' into get_or_fetch
Lumabots d0c524c
return None when fetching fails
Lumabots ddf2248
Merge branch 'get_or_fetch' of https://github.com/Lumabots/pycord int…
Lumabots 6c6e33a
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] ea555a1
back to non breaking
Lumabots e0a4745
Merge branch 'get_or_fetch' of https://github.com/Lumabots/pycord int…
Lumabots 6db3f56
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 59768c1
Merge branch 'master' into get_or_fetch
Lumabots 890cc53
Update discord/utils.py
Lumabots f6d6206
Update CHANGELOG.md
Lumabots d6daa2d
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 11035ec
paillat suggestions, in test
Lumabots 8094315
Merge branch 'get_or_fetch' of https://github.com/Lumabots/pycord int…
Lumabots 2d7fb85
fix bug invalid data unhandle
Lumabots 0ab70fd
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 3dba8a5
Merge branch 'master' into get_or_fetch
Lumabots 3b98cac
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 8976a32
Merge branch 'master' into get_or_fetch
Lumabots c966f50
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 8028be1
Merge branch 'master' into get_or_fetch
Lulalaby 9e9f5e7
fix: changelog entry position
Lulalaby 5151f0e
Merge branch 'master' into get_or_fetch
Lumabots d97ae72
Merge branch 'master' into get_or_fetch
Lulalaby d48a149
Merge branch 'master' into get_or_fetch
Soheab 6c40af9
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4a6cde0
docs rewrits
Lumabots 5325b25
Merge branch 'master' into get_or_fetch
Lumabots c376327
Merge branch 'master' into get_or_fetch
Lumabots a446fa7
Update guild.py
Lumabots c7edcf3
Update guild.py
Lumabots 58d355f
Update utils.py
Lumabots adf9fbf
Update CHANGELOG.md
Lumabots 77523d0
Merge branch 'master' into get_or_fetch
Lumabots 18f7dcf
Update discord/client.py
Lumabots 6648fd5
fix copilot mistakes
Lumabots c4c5459
fix
Lumabots 7c07ab9
Merge branch 'get_or_fetch' of https://github.com/Lumabots/pycord int…
Lumabots ae36e61
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 154d98a
usage of type for specification
Lumabots 3c6b526
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 53c1e65
Merge branch 'master' into get_or_fetch
Lumabots 58b92f3
Update discord/utils.py
Lumabots 6240173
fix: :bug: Prevent `InvalidArgument` for `AppEmoji` in `get_or_fetch`…
Lumabots 9fdcad4
fix: :bug: Import `AppEmoji` in `get_or_fetch` to resolve potential i…
Lumabots 316e07d
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e068605
Merge branch 'master' into get_or_fetch
Paillat-dev 10b5bbd
Update CHANGELOG.md
Lumabots 3c89f07
Update utils.py
Lumabots 2b14ece
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 82e11f3
fix: :bug: Import `AppEmoji` in `_get_string_to_type_map` for type ma…
Lumabots c3173e9
Merge branch 'get_or_fetch' of https://github.com/Lumabots/pycord int…
Lumabots 915e164
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 228bb4a
Merge branch 'master' into get_or_fetch
Lulalaby 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.