aboutsummaryrefslogtreecommitdiff
path: root/discord/http.py
Commit message (Collapse)AuthorAgeFilesLines
* Don't assume that any shared fields are optional in Client.edit_channel.Rapptz2016-06-151-1/+1
| | | | Thanks Jake and night.
* Make logging for HTTP requests more useful.Rapptz2016-06-151-5/+4
|
* Add Client.get_messageRapptz2016-06-151-0/+3
|
* Add a way to set permission overwrites when creating a channel.Rapptz2016-06-141-1/+4
|
* Fix bucket for change_nickname.Rapptz2016-06-141-1/+1
|
* Fix exception when handling login failureHornwitser2016-06-141-2/+2
| | | | | | Logging in with an invalid token would throw a TypeError due to improper passing of arguments to HTTPClient._token. Fix by properly passing the keyword only bot argument.
* Fix bug with uploading file-like objects.Rapptz2016-06-121-2/+1
| | | | | I would require bytes-like objects instead due to its usage inside the HTTPClient. Release this restriction so old `send_file` code works.
* Rewrite HTTP handling significantly.Rapptz2016-06-121-0/+484
This should have a more uniform approach to rate limit handling. Instead of queueing every request, wait until we receive a 429 and then block the requesting bucket until we're done being rate limited. This should reduce the number of 429s done by the API significantly (about 66% avg). This also consistently checks for 502 retries across all requests.