aboutsummaryrefslogtreecommitdiff
path: root/discord/http.py
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* 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