12 Commits

Author SHA1 Message Date
Rapptz
92ee2cd598 Add support for thread parameter in Webhook.send 2021-06-08 07:29:15 -04:00
Josh
3864fb37a0
Fix various reference issues in documentation
Co-Authored-By: Riley Shaw <30989490+ShineyDev@users.noreply.github.com>
2021-05-06 07:51:07 -04:00
Josh
dc67d2bd85
Replace uses of Ellipsis as sentinels with utils.MISSING 2021-05-03 00:31:07 -04:00
NoName
2793fc06d5
Clarify Webhook.send return value documentation 2021-05-02 18:21:11 -04:00
Rapptz
60c1240849 Fix SyncWebhook exception case causing attribute errors 2021-05-01 09:24:40 -04:00
Rapptz
02e21a8905 Fix sending multipart data with SyncWebhook
Fixes #6825
2021-05-01 09:21:39 -04:00
Nadir Chowdhury
c786a85a9b
Add utils.MISSING 2021-04-29 01:58:36 -04:00
Nadir Chowdhury
57dbb37a52
Add fetch_message for webhooks 2021-04-16 11:27:15 -04:00
Rapptz
90d59bb06c Fix overloads on Webhook.send to not require wait kwarg 2021-04-15 19:36:36 -04:00
Rapptz
0542b129c2 Fix WebhookMessage.edit documentation 2021-04-15 09:03:46 -04:00
Rapptz
1f74b051a8 Fix rate limit handling with retry_after precision change 2021-04-15 08:34:58 -04:00
Rapptz
a6f7213c89 Rewrite webhooks to play better with typings and rate limits
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
2021-04-15 08:04:32 -04:00