aboutsummaryrefslogtreecommitdiff
path: root/discord/webhook.py
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite webhooks to play better with typings and rate limitsRapptz2021-04-151-1216/+0
| | | | | | | | | | | | | | | | | This unfortunately required splitting the types into two. This led to a lot of unfortunate code duplication that I didn't really enjoy writing. The new design allows users to pass an authentication token to make webhook requests without the webhook token and allows to finally edit the webhook channel. The new design also uses a contextvar to store rate limiting information so multiple instances or recreating instances no longer clears the ratelimiting state since it's now essentially a "global" object. Closes #6525, closes #6662, closes #2509, closes #1761
* First pass at supporting v8 APIRapptz2021-04-111-1/+1
|
* Use f-strings in more places that were missed.Rapptz2021-04-081-4/+4
|
* Add source_channel and source_guild to WebhookZomatree2021-04-061-1/+118
|
* Use `asyncio.create_task` over `asyncio.ensure_future`Nadir Chowdhury2021-04-051-1/+1
|
* Remove userbot functionalityRapptz2021-04-041-4/+0
| | | | | This has a lot of legacy and cruft so there may be some stuff I've missed but this first pass is enough to get a clear separation.
* Modernize code to use f-stringsRapptz2021-04-041-10/+8
| | | | | This also removes the encoding on the top, since Python 3 does it by default. It also changes some methods to use `yield from`.
* Recreate aiohttp.FormData objects during request retriesRapptz2021-03-241-7/+8
| | | | Fixes #6531
* Fix references to snowflakes being max 21 longNihaal Sangha2021-03-021-1/+1
|
* Change copyright year to presentNihaal Sangha2021-01-151-1/+1
|
* Fix AttributeError in Webhook message deleteAlex Nørgaard2020-12-311-1/+1
|
* Fix webhook state coercion leading to unexpected behaviour.Rapptz2020-12-291-9/+21
| | | | Fix #6220
* Fix WebhookMessages docstrings Steve C2020-12-101-2/+2
| | | Silly danno
* Add support for editing and deleting webhook messages.Rapptz2020-12-091-9/+230
| | | | Fix #6058
* Add a more concrete exception for 500 status codes.Rapptz2020-09-091-1/+7
| | | | Fixes #5797
* Handle cloudflare bans on webhook requestsRapptz2020-09-091-0/+8
| | | | Fixes #5221
* Add logging to webhooksRapptz2020-09-091-10/+23
| | | | Fixes #5798
* Fix a typo with webhook documentationELginas2020-08-051-1/+1
|
* Allow more methods to set an audit log reasonNadir Chowdhury2020-06-301-11/+29
|
* Allow Webhook to be hashable and comparableZnunu2020-06-301-1/+19
|
* Fix various inconsistencies within the documentation (#5067)Sebastian Law2020-06-281-4/+14
|
* Prepare for the discord.com domain renameRapptz2020-05-231-3/+3
|
* Documentation fixups for allowed mentionsRapptz2020-04-041-1/+1
|
* Rename allowed mention parameters to allowed_mentionsRapptz2020-04-041-7/+7
|
* Fix various implementation bugs with allowed mentionsRapptz2020-04-041-6/+8
|
* Add support for configuring allowed mentions per message or bot wide.Rapptz2020-04-041-1/+13
|
* Fix invalid format specifier in PartialWebhookState.__getattr__Sebastiaan Zeeff2020-02-221-1/+1
| | | | | | | | | The message for the AttributeError raised by the __getattr__ method of the PartialWebhookState class is formatted using `str.format`. However, the placeholder contained a stray ":" before the !r specifier. This caused a ValueError("Invalid format specifier") to be raised whenever this method was called in lieu of the AttributeError that is intended to be raised.
* Fix Webhook.send returning an empty string when wait=FalseRapptz2020-02-161-2/+4
|
* Fixes and improvements for v1.3 documentationHarmon2020-01-221-0/+3
| | | | | | | | | * Add missing versionadded strings for v1.3 * Add missing versionchanged string for Message.edit * Consistently use versionadded for attributes * Consistently use versionchanged for parameters * Use versionchanged for Bot.is_owner * Fix references in v1.3 changelog * Improve grammar in v1.3 changelog
* Fix out of order files being sent in webhooks when there are 10 files.Rapptz2020-01-221-1/+1
|
* Bump copyright year to 2020Rapptz2020-01-191-2/+2
| | | | Closes #2510
* Implement `Webhook.type`NCPlayz2019-11-261-3/+11
|
* Fix all deprecation warnings for 3.8Rapptz2019-11-201-3/+3
|
* Adjust BASE urls to have no trailing slash (consistency)Devon R2019-11-151-2/+2
|
* Return invites as https, various URL normalizationDevon R2019-11-151-2/+2
|
* Implement `TextChannel.follow()`NCPlayz2019-11-151-0/+19
|
* Fix webhooks not re-raising after retries run outXua2019-10-201-0/+4
|
* Fix breakage with webhook tokens being missing.Rapptz2019-07-221-7/+18
|
* Improve documentationNCPlayz2019-06-071-12/+12
|
* Fix stray colon in Asset related docstringsRapptz2019-06-041-2/+2
|
* Correct the documentation for methods and properties that return AssetsVexs2019-05-141-6/+6
|
* Don't overwrite data parameter in webhooks.Rapptz2019-05-101-15/+15
| | | | Fixes #2140
* Consistent use of __all__ to prevent merge conflicts.Rapptz2019-04-201-1/+6
|
* Fix UnboundLocalError when RequestsWebhookAdapter raises an error.Rapptz2019-04-151-1/+4
|
* Redesign asset retrieval in the library.NCPlayz2019-04-061-6/+8
| | | | | | | | | | | 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
* Double underscore HTTPClient's internal session.Rapptz2019-03-241-1/+2
|
* Organise documentationNCPlayz2019-03-191-23/+23
|
* Take back ownership of files from aiohttp for retrying requests.Rapptz2019-03-181-5/+16
| | | | Fix #1809
* Mock a ConnectionState object to fix wait=True errors in webhooks.Rapptz2019-03-021-6/+37
| | | | Fixes #1898
* Properly clean-up file objects when necessary instead of instantly.Rapptz2019-03-021-19/+25
| | | | Fix #1770