Commit Graph
93 Commits
Author SHA1 Message Date
harumaki4649 f6dbb848d0 Validate message file upload limit 2026-07-10 19:37:13 -04:00
Soheab f7868eaf23 Improve error from Webhook.from_url when passing client 2026-07-08 16:08:43 -04:00
DA344 93fa3cb9d6 Fix (Sync)Webhook.edit_message missing the view parameter 2026-02-22 16:45:49 -05:00
Rapptz 44a44e938f Reformat entire project with ruff instead of black 2025-08-18 20:16:10 -04:00
50caa3c82c Add support for components V2
Co-authored-by: Michael H <michael@michaelhall.tech>
Co-authored-by: Soheab <33902984+Soheab@users.noreply.github.com>
Co-authored-by: owocado <24418520+owocado@users.noreply.github.com>
Co-authored-by: Jay3332 <40323796+jay3332@users.noreply.github.com>
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2025-08-13 20:37:23 -04:00
7b3f798044 Add support for guild onboarding
Co-authored-by: Josh <8677174+bijij@users.noreply.github.com>
Co-authored-by: Josh <josh.ja.butt@gmail.com>
Co-authored-by: numbermaniac <5206120+numbermaniac@users.noreply.github.com>
Co-authored-by: Andrin <65789180+Puncher1@users.noreply.github.com>
Co-authored-by: Andrin Schaller <65789180+codeofandrin@users.noreply.github.com>
Co-authored-by: DA344 <108473820+DA-344@users.noreply.github.com>
2025-08-08 03:10:32 -04:00
Mohammed Aman Jukaku 5b81a99b60 Fix error when sending non-interactive views via partial webhooks 2025-07-27 13:43:21 -04:00
DA344andDanny 5b78097cef Add support for Interaction Callback Resource
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2025-02-18 02:10:59 -05:00
DA344 6ab747f9e5 Add support for sending views in stateless webhooks 2025-02-17 18:37:20 -05:00
Gooraeng 76eb126664 Add 'mention' property in PartialWebhookChannel 2025-02-09 04:46:28 -05:00
Rapptz 733c583b72 Remove _get_poll lookup in Message constructor
This was triggering a terrible performance regression for no good
reason for all created messages that didn't have a poll, which is
essentially 99.99% of messages leading to MESSAGE_CREATE dispatches
having degraded performance.
2024-08-31 08:29:05 -04:00
owocado 0a2faa6f5d Fix default_avatar for team user and webhook 2024-08-28 15:34:33 -04:00
DA344 2751b55357 Fix Webhook poll sending raising AttributeError with a mocked state 2024-05-15 20:45:06 -04:00
e43bd8692c Add support for Polls
Co-authored-by: owocado <24418520+owocado@users.noreply.github.com>
Co-authored-by: Josh <8677174+bijij@users.noreply.github.com>
Co-authored-by: Trevor Flahardy <75498301+trevorflahardy@users.noreply.github.com>
2024-05-10 06:14:12 -04:00
Vioshim 5497674ae2 Add support for applied_tags in Webhook.send overloaded methods 2024-04-18 03:38:10 -04:00
owocado 425edd2e10 Improve __repr__ for Webhook and SyncWebhook 2024-03-22 10:02:45 -04:00
e25b7ff3f8 Support for avatar decorations
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
Co-authored-by: owocado <24418520+owocado@users.noreply.github.com>
2024-01-26 20:12:07 -05:00
Andrin 50190e088e Add applied_tags param to Webhook.send 2023-12-12 17:13:55 -05:00
Rapptz f1bade4bda Hoist webhook detection outside of store_user helper 2023-06-11 12:41:04 -04:00
Rapptz df01db3490 Initial support for pomelo migration 2023-05-19 20:59:19 -04:00
Rapptz 3951b61440 Allow Interaction webhook URLs to be used in Webhook.from_url 2023-05-19 09:44:23 -04:00
Rapptz da10065c19 Fix channel edits on webhooks sending two requests 2023-04-27 18:05:43 -04:00
Rapptz 4057afad6a Add support for passing client to Webhook.from_url and Webhook.partial 2023-02-09 23:22:45 -05:00
Rapptz 183675be74 Add support for silent messages 2023-02-08 15:40:33 -05:00
Rapptz 346ade168e Fix default allowed_mentions for partial webhook state 2023-01-31 08:58:56 -05:00
Rapptz 7e95f98521 Fix webhooks and interactions not closing files after a request 2023-01-25 04:22:24 -05:00
Rapptz d257b0c07b Fix Webhook.send returning ForumChannel for WebhookMessage.channel 2023-01-05 18:27:50 -05:00
Jakub Kuczys c6decedf7b Add ForumChannel to Webhook's documentation 2022-10-03 07:27:09 -04:00
Ionite 6981eb69c4 Normalize type formatting in TypeError
Normalize most mixed usages of `__class__`, `__class__!r`, 
`__class__.__name__!r` to the standard form of 
`__class__.__name__`
2022-09-12 15:25:55 -04:00
Rapptz 7d1cb08c6d Remove buckets from webhook ratelimit warnings 2022-08-30 00:53:47 -04:00
Nihaal Sangha 3af6b9a1e9 Fix unescaped period in webhook regex 2022-08-30 00:53:28 -04:00
CoolSpring8 b806ce332e Fix passing proxy to interactions and webhooks 2022-07-01 19:27:42 -04:00
Nadir Chowdhury 85495a910c Add extra details to rate limit logs
- Include the rate limit bucket for webhooks
- Enable `stack_info` for the 429 warning.
2022-06-16 18:52:37 -04:00
Rapptz e543abd950 Add support for new thread_name parameter in Webhook.send 2022-05-31 18:25:26 -04:00
I. Ahmad f82ec46acf Use json_or_text helper for parsing webhook responses 2022-05-30 08:48:36 -04:00
Rapptz 85ad33eb35 Fix formatting issue in webhook 2022-05-06 09:02:49 -04:00
Rapptz 4dd5cc2bc9 Pass proxy information to interactions and webhooks
Fix #7918
2022-05-05 12:07:09 -04:00
Rapptz d56f5150fa Fix oversight of edit parameters not being keyword only 2022-05-04 05:02:42 -04:00
Rapptz 8699d2139a 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.
2022-05-03 10:49:52 -04:00
Rapptz 29d4c26466 Upgrade WebhookMessage.channel to Thread if available 2022-04-10 18:15:02 -04:00
Rapptz 538ba0d076 Update Webhook.channel typing to include VoiceChannel as well 2022-04-10 18:11:44 -04:00
Rapptz b561024163 Fix WebhookState not handling reaction emoji
Fix #7842
2022-04-04 00:49:36 -04:00
UltimateSppy765 d5d9a532b2 Update docs to reflect Text in Voice related changes 2022-04-03 17:40:51 -04:00
chromacoat dreamkey 7362a2582c Fix InvalidArgument typo in Webhook.edit 2022-03-26 21:21:37 -04:00
Rapptz cf2707b2fb Propagate thread_id in webhook message methods
This also adds the remaining thread parameters where they were missing
2022-03-20 19:43:51 -04:00
Rapptz d2f6b05c43 Fix missing List -> Sequence typehint in interaction message edit 2022-03-17 10:00:03 -04:00
Josh e01d4a31eb Replace invariant container types with wider types where applicable 2022-03-17 07:26:01 -04:00
5aa696ccfa Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
Co-authored-by: Josh <josh.ja.butt@gmail.com>
2022-03-13 23:52:10 -04:00
Rapptz 3718192b9c Raise a TypeError if a non-View is passed to Webhook.send 2022-03-12 21:01:07 -05:00
chromacoat dreamkey 095aaa9ad1 Change wording of InvalidArgument removal in docs 2022-03-11 23:25:43 -05:00