aboutsummaryrefslogtreecommitdiff
path: root/discord/http.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix the proxy support for aiohttp>=1.4.PapyrusThePlant2017-08-111-1/+9
|
* Raise in HTTPClient.request when out of retrieskhazhyk2017-07-221-1/+3
| | | | | | | | | | | Raise after loop completes without returning with most recent values for r, data. This is a bit less fragile than checking tries < 4, since changing the retry count requires changing values in multiple places. (There seemed to already be handling in the 502 retry, tries <= 5, which always evaluated to true, e.g.) Previously, once out of retries, we would always return None without raising. This won't NameError so long as we make at least one HTTP request.
* Retry on 500 in HTTPClient.requestkhazhyk2017-07-221-2/+2
| | | | | Discord official client retries on 500, so worst case scenario, we're not any worse than the official client which seriously outnumbers us.
* Implement new-style NSFW channels.Rapptz2017-07-181-1/+1
| | | | | No idea how these will change in the future but this is barebones enough for now.
* Properly quote reason header so non-ASCII works in audit log reasons.Rapptz2017-06-171-1/+2
|
* Defer logging formatting until the logger is actually called.Rapptz2017-06-091-7/+6
| | | | | This would cause unnecessary format calls even if you didn't have logging enabled.
* Support for sending a nonce.Rapptz2017-05-311-2/+7
|
* Implement an Attachment model.Rapptz2017-05-301-1/+14
|
* Remove unused functions in HTTPClient.Rapptz2017-05-301-15/+0
|
* Add support for audit log reasons.Rapptz2017-05-071-58/+69
| | | | Most routes now have a 'reason' keyword argument.
* Fix NameError in HTTPClient.kickRapptz2017-05-021-1/+1
|
* Add support for setting and retrieving guild vanity invites.Rapptz2017-04-301-0/+7
|
* Implement audit logs.Rapptz2017-04-301-4/+23
|
* Support for API v7 error handling.Rapptz2017-04-151-1/+1
|
* Add support for multiple file attachments.Rapptz2017-04-081-2/+7
| | | | | | | This is a breaking change. No longer does Messageable.send have a filename keyword argument, instead this is all handled through the discord.File model. To upload many files you must specify a list of discord.File objects.
* Use an asyncio.Event instead of an asyncio.Lock for global rate limits.Rapptz2017-04-011-6/+8
| | | | | | | There were some dead-locking issues that I suspect were due to the way the global rate limit was handled. This changes it into a simple Event that allows multiple coroutines to pass through instead of one by one.
* Removing acking on channels.Rapptz2017-03-181-6/+0
|
* Add underscore to HTTPClient.session to imply privateness.Rapptz2017-03-041-6/+3
|
* Remove Client.accept_inviteRapptz2017-03-041-3/+0
|
* Add Messageable.ackRapptz2017-02-281-0/+6
|
* Add support for message acking.Rapptz2017-02-271-0/+11
|
* Remove nonce when sending messages.Rapptz2017-02-271-4/+1
|
* Better group DM support.Rapptz2017-02-091-0/+31
|
* Removed unused variables in routes.Rapptz2017-02-091-3/+0
|
* Remove unused constants in HTTPClientRapptz2017-02-081-12/+0
|
* Only defer the lock if we're pre-emptively rate limiting.Rapptz2017-02-081-1/+1
| | | | | | If a 429 was already hit somehow then we're no longer pre-emptively rate limiting and we're going to end up having a race condition in the lock/unlock cycle.
* Allow removing an embed in Message.editRapptz2017-01-291-10/+2
|
* Implement User.profile coroutine to get a user's profile.Rapptz2017-01-241-0/+3
|
* Allow unique invites for Client.create_invite.Rapptz2017-01-211-1/+2
|
* Update copyright year to 2017.Rapptz2017-01-201-1/+1
|
* Add support for relationships.Rapptz2017-01-201-0/+23
|
* Remove email/password based login.Rapptz2017-01-191-17/+0
|
* Fix bug with GuildChannel.edit and Role.edit with positions.Rapptz2017-01-161-0/+8
| | | | I did not update the HTTP code for these two methods.
* Remove _get_guild_id from Messageable ABC.Rapptz2017-01-141-7/+5
|
* Use the improved role creation endpoint for making roles.Rapptz2017-01-131-2/+2
|
* Fix 404s in pins_from and create_role routes.Rapptz2017-01-121-2/+2
|
* Fix NameError inside HTTPClient.edit_member.Rapptz2017-01-091-1/+1
|
* Fix HTTP.application_info 404ing.Rapptz2017-01-091-1/+1
|
* Implement rate limit headers.Rapptz2017-01-091-131/+185
|
* Implement AutoShardedClient for transparent sharding.Rapptz2017-01-071-0/+9
| | | | | This allows people to run their >2,500 guild bot in a single process without the headaches of IPC/RPC or much difficulty.
* Move message creation to a factory method inside ConnectionState.Rapptz2017-01-031-5/+3
|
* Absolute import some circular dependencies to appease Python 3.4.Rapptz2017-01-031-3/+5
|
* Rename MessageChannel.send_message to send and unify interface.Rapptz2017-01-031-4/+7
| | | | This removes MessageChannel.upload.
* Make emojis and members stateful.Rapptz2017-01-031-0/+5
|
* Rename Server to Guild everywhere.Rapptz2017-01-031-6/+6
|
* Properly propagate loop. Fixes #420.Rapptz2016-12-211-2/+2
|
* Add missing bucket for endpoints.Rapptz2016-11-171-3/+3
|
* Add support for clearing a message's reactions.Rapptz2016-11-171-0/+4
|
* Add atomic add and remove role endpoints to HTTPClient.Rapptz2016-11-171-0/+8
| | | | These are currently unused since their use is pretty limited.
* Support message editing with rich embeds.Rapptz2016-11-131-4/+9
|