aboutsummaryrefslogtreecommitdiff
path: root/discord/http.py
Commit message (Collapse)AuthorAgeFilesLines
* Add support for guild bannersSnowyLuma2019-03-091-1/+1
| | | | | | | | Document banner attribute of Guild and Invite Update discord/utils.py Co-Authored-By: SnowyLuma <[email protected]>
* Add support for guild descriptionsTarek13372019-03-081-1/+1
|
* Prevent AttributeError when closing HTTPClient early.Rapptz2019-03-021-1/+2
|
* Prepare fix for aiohttp 4.0 breaking change with session creation.Rapptz2019-02-271-1/+3
|
* Expose more information from partial invites, along with counts.Rapptz2019-02-121-2/+5
| | | | | | | | | | | | | This adds the following information. * `PartialInviteGuild` to replace `Object` patching * `PartialInviteChannel` to replace `Object` patching * Invite.approximate_member_count and Invite.approximate_presence_count The new partial objects provide better documentation on what is expected when you fetch random invites. Fixes #1830
* Use non-deprecated method of acquiring lockToby Harradine2019-02-061-1/+1
|
* Bumped copyright years to 2019.Dante Dam2019-01-281-1/+1
|
* Allow additional parameters on channel creationTyler2019-01-281-7/+6
|
* Log rate limit hits into WARNING instead of INFO.Rapptz2018-12-271-2/+2
|
* Add support for explicit_content_filter in Guild.editRapptz2018-12-171-2/+3
|
* Added User.mutual_friends()CapnS2018-12-141-0/+3
|
* Add support for default notification level in audit logs and Guild.editRapptz2018-11-251-1/+1
|
* [lint] Fix import orderHornwitser2018-11-241-4/+5
| | | | | Reorder imports to be consistenly grouped by standard library, third party library, and local modules in that order thoughout the library.
* [lint] Remove redundant paranthesisHornwitser2018-11-241-1/+1
| | | | | Remove redundant parenthisis around await expressions. Left over from f25091ef.
* [lint] Rename exception variables to excHornwitser2018-11-241-7/+7
| | | | | Use the more explicit (and common) exc instead of e as the variable holding the exception in except handlers.
* [lint] Remove redundant exception variablesHornwitser2018-11-241-1/+1
| | | | | | Use bare raise statement when reraising the exception that occured, and remove unused exception variables. Also remove a pointless exception handler in discord.opus.
* Add support for Discord's slow mode.Rapptz2018-09-141-1/+2
| | | | | | | Adds the following: * `slowmode_delay` for `TextChannel.edit` * `slowmode_delay` attribute for `TextChannel`
* Added hypesquad house functionalitymental2018-08-221-0/+7
|
* [lint] Fix incorrect and inconsistent whitespaceHornwitser2018-08-221-11/+8
| | | | Adjust whitespace to be consistent with the rest of the library.
* [lint] Remove unused importsHornwitser2018-08-221-1/+0
| | | | Left over from various refactoring and rewrites.
* Implement roles kwarg for guild.create_custom_emoji and emoji.editPikalaxALT2018-08-221-4/+6
|
* Make TextChannel.create_webhook name parameter mandatory.Rapptz2018-07-201-4/+4
|
* Drop support for Python 3.4 and make minimum version 3.5.2.Rapptz2018-06-101-38/+25
|
* Add support for getting individual ban entriesslice2018-05-071-0/+3
|
* Add missing coroutine decorator to HTTPClient.get_attachmentRapptz2018-02-261-0/+1
| | | | Fixes #1104
* Use the proper endpoint for removing your own reaction.Rapptz2017-12-211-0/+5
|
* Add Client.clear to clear the bot's internal state to a clean slate.Rapptz2017-12-161-0/+4
| | | | In case you want to have some external restart loop.
* Fix URI quoting in Route.Rapptz2017-10-241-1/+1
|
* Quote all Route paramsGorialis2017-10-201-1/+1
|
* Reimplement zlib streaming.Rapptz2017-10-141-4/+12
| | | | | | | | | | | | | | This time with less bugs. It turned out that the crash was due to a synchronisation issue between the pending reads and the actual shard polling mechanism. Essentially the pending reads would be cancelled via a simple bool but there would still be a pass left and thus we would have a single pending read left before or after running the polling mechanism and this would cause a race condition. Now the pending read mechanism is properly waited for before returning control back to the caller.
* Revert "Implement zlib streaming for the gateway."Rapptz2017-10-141-12/+4
| | | | This reverts commit 462191a08b5b2efb83f5bc32935dc546d35a744b.
* Implement zlib streaming for the gateway.Rapptz2017-10-121-4/+12
|
* Move pre-emptive message to DEBUG log level.Rapptz2017-10-011-1/+1
|
* Allow creating a channel with a category.Rapptz2017-09-291-1/+4
|
* Don't use Bulk Channel Edit endpoint if not actually moving channels.Rapptz2017-09-241-1/+1
| | | | | | Should make the category-only edit cases more straightforward since it does not rely on other guilds in the cache, outside of the category itself.
* Fix typo in http.create_channelHarmon2017-09-131-2/+2
|
* Add category support.Rapptz2017-09-131-3/+3
| | | | | | | | | | | | | This adds: * CategoryChannel, which represents a category * Guild.by_category() which traverses the channels grouping by category * Guild.categories to get a list of categories * abc.GuildChannel.category to get the category a channel belongs to * sync_permissions keyword argument to abc.GuildChannel.edit to sync permissions with a pre-existing or new category * category keyword argument to abc.GuildChannel.edit to move a channel to a category
* Manually format reason parameter for kick and ban.Rapptz2017-08-301-2/+6
| | | | Related to: https://github.com/aio-libs/aiohttp/issues/2235
* Add webhook support.Rapptz2017-08-211-5/+21
| | | | | | | Allows for usage of either `requests` and `aiohttp` when used in "Standalone" mode. Fixes #704
* Add support for Guild.system_channelRapptz2017-08-171-1/+2
|
* 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.