-
Notifications
You must be signed in to change notification settings - Fork 187
refactor: reorganize http endpoints #602
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
50 commits
Select commit
Hold shift + click to select a range
2b79405
fix!: fix EmbedImageStruct serialization
EepyElvyra bf79b5d
fix!: Button emoji serialization
EepyElvyra a429ffe
fix!: message serialization in context
EepyElvyra 0b8ba69
refactor: refactor return typehints and payload naming to be consistent
EepyElvyra 483930c
refactor: change naming of arguments
EepyElvyra 7390666
Merge branch 'unstable' into fix_http.py
EepyElvyra afe26c9
refactor: http to folder
EepyElvyra 1963816
Delete http.py
EepyElvyra 16d82fa
http still deleted :P
EepyElvyra 1729a24
Merge remote-tracking branch 'origin/fix_http.py' into fix_http.py
EepyElvyra 857c4cf
Merge branch 'unstable' into fix_http.py
EepyElvyra bee7ac5
refactor: move HTTP into folder
EepyElvyra 17385bc
refactor: correct namings and imports
EepyElvyra 3da70b7
refactor: add __init__, fix imports in other files
EepyElvyra b1b9bd0
refactor: move Guild endpoint into file; add slots
EepyElvyra 645df98
refactor: move Member endpoint into file
EepyElvyra 00facd2
refactor: move Channel endpoint into file
EepyElvyra 7fb7550
refactor: move Channel endpoint into file
EepyElvyra 0e3a0f1
refactor: move Thread endpoint into file
EepyElvyra 034905f
refactor: move Reaction endpoint into file
EepyElvyra f1126e5
refactor: move Sticker endpoint into file
EepyElvyra 984079a
refactor: move interaction endpoint into file
EepyElvyra 4e68598
refactor: move webhook endpoint into file
EepyElvyra 8b82028
refactor: move emoji endpoint into file
EepyElvyra 1e51487
refactor: move emoji endpoint into file
EepyElvyra cd433cf
refactor: requested changes
EepyElvyra 4c8a03c
refactor: reflect breaking changes to all files
EepyElvyra 200c1e6
refactor: add new HTTPClient
EepyElvyra cad5049
docs:
EepyElvyra f73d99f
docs: fix
EepyElvyra 387f865
refactor: rename file
EepyElvyra 9347836
refactor: rename file
EepyElvyra 7414a03
refactor: subclassing
EepyElvyra 754d5d0
refactor: remove leftover slots
EepyElvyra 2ba40ae
Update docs/api.http.rst
EepyElvyra 9607770
Update api.http.rst
EepyElvyra 76ca8ff
Rename http.pyi to client.pyi
EepyElvyra 7d7edbb
Rename http.py to client.py
EepyElvyra d722ee3
Update gateway.py
EepyElvyra 6dc0c94
Update gateway.pyi
EepyElvyra 3c48334
Update channel.pyi
EepyElvyra fce5d88
Update guild.pyi
EepyElvyra 243434b
Update member.pyi
EepyElvyra f915342
Update message.pyi
EepyElvyra b20b565
Update role.pyi
EepyElvyra 24e2608
Update client.py
EepyElvyra 2a9ae16
Update client.pyi
EepyElvyra 68493fe
Update context.pyi
EepyElvyra 9eb26cd
Update __init__.py
EepyElvyra 0dcd866
ci: correct from checks.
pre-commit-ci[bot] 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,68 @@ | ||
| .. currentmodule:: interactions | ||
|
|
||
| HTTP Client | ||
| =========== | ||
| HTTP | ||
| ==== | ||
|
|
||
| .. automodule:: interactions.api.http | ||
| .. autoclass:: interactions.api.http.route.Route | ||
| :members: | ||
| :noindex: | ||
|
|
||
| .. autoclass:: interactions.api.http.limiter.Limiter | ||
| :members: | ||
| :noindex: | ||
|
|
||
| .. autoclass:: interactions.api.http.request._Request | ||
| :members: | ||
| :noindex: | ||
|
|
||
| .. autoclass:: interactions.api.http.client.HTTPClient | ||
| :members: | ||
| :noindex: | ||
|
|
||
| .. autoclass:: interactions.api.http.channel._ChannelRequest | ||
| :members: | ||
| :noindex: | ||
|
|
||
| .. autoclass:: interactions.api.http.emoji._EmojiRequest | ||
| :members: | ||
| :noindex: | ||
|
|
||
| .. autoclass:: interactions.api.http.guild._GuildRequest | ||
| :members: | ||
| :noindex: | ||
|
|
||
| .. autoclass:: interactions.api.http.interaction._InteractionRequest | ||
| :members: | ||
| :noindex: | ||
|
|
||
| .. autoclass:: interactions.api.http.member._MemberRequest | ||
| :members: | ||
| :noindex: | ||
|
|
||
| .. autoclass:: interactions.api.http.message._MessageRequest | ||
| :members: | ||
| :noindex: | ||
|
|
||
| .. autoclass:: interactions.api.http.reaction._ReactionRequest | ||
| :members: | ||
| :noindex: | ||
|
|
||
| .. autoclass:: interactions.api.http.scheduledEvent._ScheduledEventRequest | ||
| :members: | ||
| :noindex: | ||
|
|
||
| .. autoclass:: interactions.api.http.sticker._StickerRequest | ||
| :members: | ||
| :noindex: | ||
|
|
||
| .. autoclass:: interactions.api.http.thread._ThreadRequest | ||
| :members: | ||
| :noindex: | ||
|
|
||
| .. autoclass:: interactions.api.http.user._UserRequest | ||
| :members: | ||
| :noindex: | ||
|
|
||
| .. autoclass:: interactions.api.http.webhook._WebhookRequest | ||
| :members: | ||
| :noindex: | ||
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.