Rapptz
4fa2a6e63e
Fix memory leak in webhooks not deallocating locks
3 years ago
Rapptz
29b808d33f
Change avatar_url type hint to Any instead of str
4 years ago
Steve C
059ec161f8
Fix Webhook return types
Also add positional only arguments where applicable
4 years ago
Rapptz
490bbffc93
Remove in-place edits and return fresh instances instead
Fixes #4098
4 years ago
Rapptz
69f578abdc
Fix webhook typings and use PartialMessageable instead of Object
4 years ago
Rapptz
4a72201617
Make json conversion functions private
4 years ago
Rapptz
ea2d972666
Make global log variable in modules private
4 years ago
Rapptz
658b61d468
Fix SyncWebhook not working across thread barriers
Fix #7310
4 years ago
Rapptz
f7d551953b
Remove extraneous __slots__ assignments
4 years ago
Rapptz
92ee2cd598
Add support for thread parameter in Webhook.send
4 years ago
Josh
3864fb37a0
Fix various reference issues in documentation
Co-Authored-By: Riley Shaw <[email protected] >
4 years ago
Josh
dc67d2bd85
Replace uses of Ellipsis as sentinels with utils.MISSING
4 years ago
NoName
2793fc06d5
Clarify Webhook.send return value documentation
4 years ago
Rapptz
60c1240849
Fix SyncWebhook exception case causing attribute errors
4 years ago
Rapptz
02e21a8905
Fix sending multipart data with SyncWebhook
Fixes #6825
4 years ago
Nadir Chowdhury
c786a85a9b
Add utils.MISSING
4 years ago
Nadir Chowdhury
57dbb37a52
Add `fetch_message` for webhooks
4 years ago
Rapptz
90d59bb06c
Fix overloads on Webhook.send to not require wait kwarg
4 years ago
Rapptz
0542b129c2
Fix WebhookMessage.edit documentation
4 years ago
Rapptz
1f74b051a8
Fix rate limit handling with retry_after precision change
4 years ago
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
4 years ago