dolfies
29df9a4505
Implement student hubs and directory channels ( #561 )
2 years ago
Rapptz
1424412e42
Hoist webhook detection outside of store_user helper
2 years ago
Rapptz
7f345f194f
Allow Interaction webhook URLs to be used in Webhook.from_url
2 years ago
Rapptz
c13a35e911
Fix channel edits on webhooks sending two requests
2 years ago
scruz
e832a21c32
Fix return types in sync.py docstring
2 years ago
dolfies
8a1a3ffcce
Fix issues with previous upstream commits
2 years ago
Rapptz
841f1debdc
Add support for stage message types
2 years ago
Rapptz
956697080d
Add support for passing client to Webhook.from_url and Webhook.partial
2 years ago
Rapptz
6ec3ecd493
Add support for silent messages
2 years ago
Rapptz
54dbabe0d2
Fix default allowed_mentions for partial webhook state
2 years ago
Rapptz
57b118b393
Fix webhooks and interactions not closing files after a request
2 years ago
Rapptz
beb08e1aef
Fix Webhook.send returning ForumChannel for WebhookMessage.channel
2 years ago
Jakub Kuczys
622a76651a
Add ForumChannel to Webhook's documentation
3 years ago
Rapptz
9e81872fc8
Remove buckets from webhook ratelimit warnings
3 years ago
Nihaal Sangha
6187e05ee2
Fix unescaped period in webhook regex
3 years ago
CoolSpring8
6f30c0612b
Fix passing proxy to interactions and webhooks
3 years ago
Nadir Chowdhury
c9d6d3d1df
Add extra details to rate limit logs
- Include the rate limit bucket for webhooks
- Enable `stack_info` for the 429 warning.
3 years ago
Rapptz
72ca280bf2
Add support for new thread_name parameter in Webhook.send
3 years ago
I. Ahmad
0bdc4d7281
Use json_or_text helper for parsing webhook responses
3 years ago
Rapptz
f4fd87be8d
Use explicit UTF-8 encoding in SyncWebhook
3 years ago
Rapptz
accf9b411b
Fix formatting issue in webhook
3 years ago
Rapptz
97aacb4635
Pass proxy information to interactions and webhooks
Fix #7918
3 years ago
Rapptz
18ae88b791
Improve generic duck type programming with PartialMessageable
This adds jump_url, permissions_for, and created_at. Luckily, most
cases of this type being constructed already have the guild_id at
creation time.
3 years ago
dolfies
bea744bf1d
Fix hread typo
2 years ago
dolfies
fc8e2b0f73
Implement avatar decorations
These can't be used by non-staff yet
3 years ago
dolfies
008f79adee
Rebase to latest upstream
3 years ago
dolfies
8fcca3183a
Rebase to latest upstream
3 years ago
dolfies
29c2036bc8
Rebase to latest upstream
3 years ago
Rapptz
cf2707b2fb
Propagate thread_id in webhook message methods
This also adds the remaining thread parameters where they were missing
3 years ago
Rapptz
d2f6b05c43
Fix missing List -> Sequence typehint in interaction message edit
3 years ago
Josh
e01d4a31eb
Replace invariant container types with wider types where applicable
3 years ago
Stocker
5aa696ccfa
Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <[email protected] >
Co-authored-by: Josh <[email protected] >
3 years ago
Rapptz
3718192b9c
Raise a TypeError if a non-View is passed to Webhook.send
3 years ago
chromacoat dreamkey
095aaa9ad1
Change wording of InvalidArgument removal in docs
3 years ago
Stocker
554d2d7c99
Add the suppress_embeds parameter to send methods
Modified the following methods:
- abc.Messageable.send
- Webhook.send
- SyncWebhook.send
- InteractionResponse.send_message
3 years ago
Josh
147948af9b
Use typing.Self throughout library
3 years ago
Rapptz
50ef8e8893
Fix NameError when checking for File instances
3 years ago
Nihaal Sangha
90cabd1673
Fix various typos
3 years ago
Josh
2b69b5d545
Remove discord.InvalidArgument
This uses TypeError and ValueError instead.
3 years ago
jack1142
40dc8d1d9d
Change Webhook.avatar to be consistent with User.avatar
3 years ago
Rapptz
88b520b5ab
Reformat code using black
Segments where readability was hampered were fixed by appropriate
format skipping directives. New code should hopefully be black
compatible. The moment they remove the -S option is probably the moment
I stop using black though.
3 years ago
Josh
dede5539ee
Add support for editing message attachments
3 years ago
jack1142
dc19c6c7d5
Add positional-only arguments in more places
3 years ago
Rapptz
92d1b4cd2b
Refactor interaction response handling to support files
This adds support for file sending and allowed_mentions
3 years ago
Rapptz
9c066a8cf6
Refactor internal message sending and editing parameter passing
This reduces some repetition in many functions and is ripped out of
the webhook code. This also removes the unused HTTP functions for
interaction responses since those belong in the webhook code rather
than the HTTPClient.
3 years ago
Josh
08bee0eeb6
Add support for file/attachment descriptions
3 years ago
Rapptz
4fa2a6e63e
Fix memory leak in webhooks not deallocating locks
3 years ago
dolfies
a1a773c6bb
Remove unused imports
3 years ago
dolfies
d4b592cf49
Fix webhook/
4 years ago
dolfies
4f09c51500
Migrate webhooks/
4 years ago