aboutsummaryrefslogtreecommitdiff
path: root/discord/webhook.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Bump aiohttp requirement and fix AsyncWebhookAdapterBryan Forbes2019-02-121-1/+1
|
* Bumped copyright years to 2019.Dante Dam2019-01-281-1/+1
|
* Fix Webhook states for stateful objectsDice2019-01-281-3/+3
|
* Fix AttributeError in webhook.sendChris Rrapi2018-11-291-1/+1
|
* Webhooks: add support for multi-file uploadTerrance2018-11-241-8/+28
| | | | | | | | | `Webhook.send()` now accepts a `files` kwarg holding a list of `File` objects, which are included in the HTTP request as `file1`, `file2` and so on. This is an undocumented feature of the Discord API, but is analogous with the client's sending of messages with multiple files.
* [lint] Fix import orderHornwitser2018-11-241-1/+2
| | | | | Reorder imports to be consistenly grouped by standard library, third party library, and local modules in that order thoughout the library.
* Fix up the Sphinx strings causing warnings.Rapptz2018-09-151-1/+1
|
* [lint] Fix types used for __slots__ and __all__Hornwitser2018-08-221-1/+1
| | | | | Stay consistent with the rest of the library and use lists for module __all__ values and tuples for class __slots__ attributes.
* [lint] Fix incorrect and inconsistent whitespaceHornwitser2018-08-221-1/+1
| | | | Adjust whitespace to be consistent with the rest of the library.
* Drop support for Python 3.4 and make minimum version 3.5.2.Rapptz2018-06-101-13/+8
|
* Fix Webhook.guild raising an AttributeError.Rapptz2018-03-161-1/+1
| | | | Fixes #1148
* Add intersphinxTobotimus2018-01-061-8/+8
|
* Fix multipart sending for RequestsWebhookAdapter to work.Rapptz2018-01-031-2/+5
|
* Fix Webhook.delete not working.Rapptz2017-11-071-1/+1
|
* Add webhook.urlrooni2017-09-181-0/+5
|
* Fix docstrings for Webhook.sendRapptz2017-09-081-17/+20
|
* Rename webhook parameters to payload to avoid shadowing.Rapptz2017-08-241-16/+16
| | | | The old names clashed with the `json` module.
* Webhook URLs can have dashes and underscores.Rapptz2017-08-221-1/+1
|
* Fix a couple docstringsSteve C2017-08-221-3/+3
|
* Fix multi-part sending with aiohttp in webhooks.Rapptz2017-08-221-0/+1
|
* Don't make session a keyword only argument.Rapptz2017-08-211-1/+1
|
* Fix some docstrings.Rapptz2017-08-211-5/+3
|
* Fix Webhook.execute alias.Rapptz2017-08-211-2/+3
|
* Add webhook support.Rapptz2017-08-211-0/+651
Allows for usage of either `requests` and `aiohttp` when used in "Standalone" mode. Fixes #704