aboutsummaryrefslogtreecommitdiff
path: root/discord/http.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Use `format_map` instead of `format` for `Route.url` Nadir Chowdhury2021-04-061-1/+1
|
* Remove unused group functionalityRapptz2021-04-061-12/+0
|
* Reformat HTTPClient and add interaction endpointsRapptz2021-04-061-105/+484
|
* Remove userbot functionalityRapptz2021-04-041-87/+11
| | | | | This has a lot of legacy and cruft so there may be some stuff I've missed but this first pass is enough to get a clear separation.
* Modernize code to use f-stringsRapptz2021-04-041-3/+1
| | | | | This also removes the encoding on the top, since Python 3 does it by default. It also changes some methods to use `yield from`.
* Implement StageChannel and related methodsNadir Chowdhury2021-04-031-0/+8
|
* Implement voice region changing for voice channelsTarek2021-04-011-3/+3
|
* Recreate aiohttp.FormData objects during request retriesRapptz2021-03-241-7/+24
| | | | Fixes #6531
* Add roles to guild.estimate_pruned_membersz03h2021-03-241-1/+4
|
* remove trailing whitespaceNadir Chowdhury2021-03-131-2/+2
|
* Add remaining template endpointsNadir Chowdhury2021-02-231-0/+22
|
* Change copyright year to presentNihaal Sangha2021-01-151-1/+1
|
* Support setting the preferred locale via Guild.editRapptz2021-01-051-1/+1
| | | | Fix #6267
* Implement discord.Message.replyPikalaxALT2020-11-261-2/+7
|
* Raise DiscordServerError for 503 Service Unavailable errorsHarmon2020-11-211-0/+2
|
* Use delete_message_days instead of delete-message-daysRapptz2020-09-231-1/+1
|
* Use /invites/ instead of /invite/Rapptz2020-09-231-2/+2
|
* Add a more concrete exception for 500 status codes.Rapptz2020-09-091-2/+5
| | | | Fixes #5797
* Use a subclass rather than monkey-patching for the websocketjack11422020-07-251-2/+3
|
* If we're out of retries just raise the OSErrorRapptz2020-07-251-3/+2
|
* Handle Connection Reset by Peer connection errors.Rapptz2020-07-251-58/+66
| | | | | | | | | | | | This should work both on Windows and on Linux. Apparently these types of blips are considered normal for Discord. So rather than letting the reconnect logic handler expect these to be catastrophic, it should handle it specially so it doesn't waste an IDENTIFY for what ultimately should just be a small networking blip. This also makes it less noisy for the end-user as these complaints happen from time to time.
* Fix voice websocket connectionsRapptz2020-07-251-1/+9
|
* Rewrite gateway to use aiohttp instead of websocketsRapptz2020-07-251-0/+11
|
* Fix TypeError when not specifying roles.Tarek2020-07-081-2/+4
|
* Allow more methods to set an audit log reasonNadir Chowdhury2020-06-301-6/+6
|
* Add support for integrationsNadir Chowdhury2020-06-281-0/+32
|
* Add support for Discord templatesNadir Chowdhury2020-06-281-0/+11
|
* Fix error raised when using the roles parameter.Tarek2020-06-261-3/+3
|
* Allow editing of channel types for news and text channelsNCPlayz2020-05-291-1/+2
|
* Implement some missing attributes of `Guild` (and `Guild.edit`)NCPlayz2020-05-231-1/+2
|
* Prepare for the discord.com domain renameRapptz2020-05-231-1/+1
|
* Add roles parameter for pruning members.unknown2020-05-031-2/+3
|
* Rename allowed mention parameters to allowed_mentionsRapptz2020-04-041-6/+6
|
* Add support for configuring allowed mentions per message or bot wide.Rapptz2020-04-041-2/+7
|
* Suppress missing Content-Type headers when fetching contentRapptz2020-02-221-2/+7
| | | | Fixes #2572