aboutsummaryrefslogtreecommitdiff
path: root/discord/http.py
Commit message (Collapse)AuthorAgeFilesLines
* Add default value for invitable in HTTPClientDanny2021-08-261-1/+1
|
* Add support for invitable thread optionJosh2021-08-261-0/+3
|
* Fix some typings in HTTPClient to not take strict payload typesRapptz2021-08-231-4/+4
|
* Fix typings for member HTTP methodsRapptz2021-08-231-41/+83
|
* Fix type for content param in HTTPClient.send_messageStocker2021-08-231-1/+1
|
* Make json conversion functions privateRapptz2021-08-221-4/+4
|
* Make global log variable in modules privateRapptz2021-08-221-8/+8
|
* Remove deprecated TextChannel.active_threads for Guild versionRapptz2021-08-181-2/+2
| | | | This also fills in the ThreadMember data from the endpoint
* Revert "Refactor Client.run to use asyncio.run"Rapptz2021-08-111-2/+1
| | | | This reverts commit 6e6c8a7b2810747222a938c7fe3e466c2994b23f.
* Refactor Client.run to use asyncio.runRapptz2021-08-101-1/+2
| | | | | | | | This also adds asynchronous context manager support to allow for idiomatic asyncio usage for the lower-level counterpart. At first I wanted to remove Client.run but I figured that a lot of beginners would have been confused or not enjoyed the verbosity of the newer approach of using async-with.
* Remove unused log lines in HTTPClientRapptz2021-08-101-4/+0
|
* Add TextChannel.default_auto_archive_durationRapptz2021-08-021-0/+1
|
* Change payload to use sticker_ids instead of sticker_itemsRapptz2021-07-301-2/+2
|
* Rename instances of nitro to premiumRapptz2021-07-301-1/+1
|
* implement guild stickersNadir Chowdhury2021-07-301-3/+61
|
* Allow creating a public thread without a starter messageRapptz2021-07-281-4/+2
|
* Add reason kwarg to more methodsNadir Chowdhury2021-07-281-18/+16
|
* Fix incorrect typehint in send_messageWilly2021-07-211-2/+2
|
* Re-try requests on 504 error and raise correct errorLilly Rose Berner2021-07-091-3/+3
|
* Allow use of orjson instead of jsonRapptz2021-07-071-1/+1
| | | | | | | The difference in speed seems negligible at start up, which is when most time is taken for actually parsing JSON. I could potentially be missing something but profiling didn't point to any discernable difference.
* Fix typing errors with ClientRapptz2021-07-041-4/+6
|
* Fix type errors and potentially unbound code in http.pyRapptz2021-07-041-28/+35
|
* Rework User.edit to have proper typingRapptz2021-06-291-7/+1
|
* Add support for sending multiple embedsAomi Vel2021-06-271-2/+8
|
* Type-Hint http.pyJosh2021-06-101-245/+518
|
* Clarify actions that require manage_threads permissionRapptz2021-06-081-0/+1
|
* Bump gateway API to v9Rapptz2021-06-081-4/+4
|
* Update thread typings and payloads to match documentationRapptz2021-06-081-8/+27
|
* Implement remaining HTTP endpoints on threadsRapptz2021-06-081-5/+11
| | | | | I'm not sure if I missed any -- but this is the entire documented set so far.
* First pass at preliminary thread supportRapptz2021-06-081-0/+77
| | | | | This is missing a lot of functionality right now, such as two gateway events and all the HTTP CRUD endpoints.
* update types subpackage with latest docs Nadir Chowdhury2021-06-071-10/+11
|
* Add support for editing guild widgetsMhmCats2021-06-021-0/+3
|
* Implement StageInstanceNadir Chowdhury2021-05-301-0/+29
|
* Add invite targets for voice channel invitesZomatree2021-05-291-0/+12
|
* Add initial support for buttons and componentsRapptz2021-05-271-2/+18
|
* Typehint emoji classesRapptz2021-05-051-5/+1
|
* Type hint GuildChannel and don't make it a ProtocolRapptz2021-05-051-6/+16
| | | | This reverts GuildChannel back into a base class mixin.
* Add discovery_splash and community field to Guild.editNadir Chowdhury2021-05-051-0/+2
|
* Add fetch_invite with with_expirationNadir Chowdhury2021-05-011-1/+2
|
* Fix guild application command endpointsJoey van Langen2021-05-011-6/+6
|
* Add types for ApplicationCommandPermissions & coNadir Chowdhury2021-05-011-0/+38
|
* Add VoiceChannel.video_quality_modez03h2021-04-171-0/+2
|
* Add `fetch_message` for webhooksNadir Chowdhury2021-04-161-0/+13
|
* Some initial response typingsRapptz2021-04-161-11/+24
|
* Fix rate limit handling with retry_after precision changeRapptz2021-04-151-1/+2
|
* Rewrite webhooks to play better with typings and rate limitsRapptz2021-04-151-2/+3
| | | | | | | | | | | | | | | | | This unfortunately required splitting the types into two. This led to a lot of unfortunate code duplication that I didn't really enjoy writing. The new design allows users to pass an authentication token to make webhook requests without the webhook token and allows to finally edit the webhook channel. The new design also uses a contextvar to store rate limiting information so multiple instances or recreating instances no longer clears the ratelimiting state since it's now essentially a "global" object. Closes #6525, closes #6662, closes #2509, closes #1761
* First pass at supporting v8 APIRapptz2021-04-111-11/+10
|
* Use f-strings in more places that were missed.Rapptz2021-04-081-2/+2
|
* Revert "Remove unused group functionality"Rapptz2021-04-071-0/+12
| | | | This reverts commit d69b2f0af563993bdae425f4bb92fb555a238933.
* Fix AttributeError on HTTPClient.send_file to be send_filesSteve C2021-04-071-1/+1
|