aboutsummaryrefslogtreecommitdiff
path: root/discord/http.py
Commit message (Collapse)AuthorAgeFilesLines
* Suppress missing Content-Type headers when fetching contentRapptz2020-02-221-2/+7
| | | | Fixes #2572
* Better detection for Cloudflare related 429s.Rapptz2020-02-011-1/+1
| | | | | | | At some point Cloudflare started returning some JSON. I don't know how this JSON looks like. See #2544
* Bump copyright year to 2020Rapptz2020-01-191-1/+1
| | | | Closes #2510
* Add support for clearing a specific reaction.Rapptz2020-01-171-1/+6
| | | | Closes #2440
* Implement discord.MessageFlagsNCPlayz2019-12-201-6/+4
| | | | Refactor flags placement and use it for suppression.
* Fix one more remaining loop passing for 3.8 in a LockRapptz2019-11-201-1/+1
|
* Fix all deprecation warnings for 3.8Rapptz2019-11-201-5/+5
|
* Implement `TextChannel.follow()`NCPlayz2019-11-151-0/+6
|
* Use X-Ratelimit-Reset-After header by default.Rapptz2019-08-271-2/+3
| | | | There is now an option to turn it off, of course.
* Fix bucket key to not have the method in there.Rapptz2019-08-271-1/+1
|
* Use new rate limit millisecond precision option.Rapptz2019-08-271-9/+6
|
* Add support for suppressing embeds.Rapptz2019-06-291-0/+6
|
* Implement `Guild.fetch_roles`NCPlayz2019-06-291-0/+3
|
* Implement `Guild.fetch_members`NCPlayz2019-06-291-0/+10
| | | | Also implements `MemberIterator`.
* Implementing GET '/channels/:id' & '/guilds/:id/channels'NCPlayz2019-06-071-0/+7
| | | | Signed-off-by: NCPlayz <[email protected]>
* Add support for system channel flagsRapptz2019-06-061-1/+2
|
* Properly handle compute_prune_count in prune members endpoint.Rapptz2019-05-301-1/+1
|
* Add reason to TextChannel.create_webhookRapptz2019-04-181-2/+3
| | | | | The reason parameter does not work with webhook deletes or edits so they're not added. Probably a Discord bug.
* Internal consistency with message related HTTPClient methodsRapptz2019-04-141-7/+7
|
* Add compute_prune_count to Guild.prune_membersRapptz2019-04-141-2/+3
| | | | Fix #2085
* allow passing 0 for logs_from parameterskhazhyk2019-04-071-3/+3
|
* Add fetch custom emoji, all custom emojis; Add user property to EmojiNCPlayz2019-04-061-0/+6
|
* Redesign asset retrieval in the library.NCPlayz2019-04-061-4/+4
| | | | | | | | | | | Most assets now return a new class named `Asset`. This allows for the assets to be consistently saved via a `save` method instead of special casing for `Attachment`. `AppInfo` is no longer a namedtuple it is a fully documented dataclass, as well as having the state attached to it. Fixes #1997
* Propagate Cloudflare 429 HTML text.Rapptz2019-03-311-0/+4
|
* Added functionality to edit user settingsCapnS2019-03-281-0/+3
| | | | | | | | | | | | Changing docs to fit other parts of the lib Co-Authored-By: CapnS <[email protected]> Removing Type Checking Made all of Rapptz's suggested changes Removing imports that are no longer needed
* Double underscore HTTPClient's internal session.Rapptz2019-03-241-8/+8
|
* Add support for guild widgetNCPlayz2019-03-191-0/+3
|
* Expose MetadataNCPlayz2019-03-191-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added access to: * `/users/@me/guilds` * `/guilds/{guild_id}` * `/guilds/{guild_id}/members/{member_id}` BREAKING CHANGE: * `get_user_info` -> `fetch_user_info` to match naming scheme. Remove useless note Remove `reverse` and corresponding documentation Update documentation to reflect #1988 Rename `get_` HTTP functions to `fetch_` Breaking Changes: * `get_message` -> `fetch_message` * `get_invite` -> `fetch_invite` * `get_user_profile` -> `fetch_user_profile` * `get_webhook_info` -> `fetch_webhook` * `get_ban` -> `fetch_ban` Fix InviteConverter, update migrating.rst Rename get_message to fetch_message
* Take back ownership of files from aiohttp for retrying requests.Rapptz2019-03-181-6/+10
| | | | Fix #1809
* 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
|