Commit Graph
370 Commits
Author SHA1 Message Date
harumaki4649 188d32d632 Fix Message.edit suppress default 2026-07-10 22:00:05 -04:00
VOVOplay 1cc278dcdc Fixed grammar error for WebhookMessage.clean_content 2026-07-10 19:46:19 -04:00
Evanroby 97871a1b96 Fix typos in api reference docs 2026-07-09 19:11:19 -04:00
Rapptz b01de35fa2 Remove old workaround to /callback not having a return type
The old code needed a workaround using interaction_id to differentiate
between multiple instances being reused since they would all go into
the `None` key. Since /callback now returns a proper message_id this
could be used as a key instead of None. From testing, it seems this is
true for both edit_message and send_message responses.
2026-03-02 12:29:02 -05:00
n6ck fd5a218d7c Add Message.is_forwardable to check if a message can be forwarded 2026-02-22 22:12:39 -05:00
Sacul e45c8e60e1 Add bypass slowmode permissions 2026-02-22 15:53:02 -05:00
Rapptz 2f1c3fde7b Fix Message.call raising an attribute error when accessed
Fix #10404
2026-02-18 22:27:23 -05:00
Steve C bd329b1515 Add support for emoji_added message type 2025-09-03 05:34:13 -04:00
Lucas Hardt a7f349498a Upgrade code by using f-strings and yield from 2025-09-03 05:31:59 -04:00
Rapptz 283ed20956 Use List[Component] in docs instead of spelling them all out 2025-08-19 20:55:02 -04:00
Rapptz 44a44e938f Reformat entire project with ruff instead of black 2025-08-18 20:16:10 -04:00
Soheab 705eb2c2a5 Update to support new pin endpoints 2025-08-13 20:47:14 -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
owocado d00c124883 Add MessageApplication.__str__ 2025-06-20 15:01:48 -04:00
dolfies de5720e659 Fix attachment is_spoiler() and is_voice_message() 2025-03-02 22:38:53 -05:00
dolfies 66f3548f3a Add defaults for message object parsing 2025-02-28 18:00:33 -05:00
Jakub Kuczys 19f02c40b3 Document message types that can have a default message reference 2025-02-24 05:03:24 -05:00
Rapptz 8953938a53 Update Pyright to v1.1.394 2025-02-18 03:29:09 -05:00
DA344 afbbc07e98 Add support for poll result messages 2025-01-19 05:09:05 -05:00
Violet 55974ebde8 Fix MessageSnapshot sticker_items typo 2025-01-15 18:40:16 -05:00
Soheab 814ce3c8ee Add command target to MessageInteractionMetadata 2024-11-09 06:19:43 -05:00
Steve C c8ecbd8d10 Add Message.forward flag 2024-10-22 12:01:34 -04:00
99a7093c34 Add support for message forwarding
Co-authored-by: Red Magnos <redmagnos@gmail.com>
Co-authored-by: MCausc78 <mcausc78@gmail.com>
Co-authored-by: owocado <24418520+owocado@users.noreply.github.com>
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2024-10-11 15:34:18 -04:00
owocado 48cf500e09 Fix Message.system_content for role_subscription_purchase renewal type 2024-10-11 02:08:27 -04:00
Soheab b3141db6e9 Add support for messages with type purchase_notification 2024-10-10 19:43:07 -04:00
Andrin 20c543f672 Add support for message call 2024-10-10 05:21:59 -04:00
iyad-f 9d7c253535 Add missing error for Message.edit 2024-10-09 18:11:27 -04:00
Rapptz 66d74054dd Remove outdated leftover comment about polls 2024-08-31 08:32:52 -04: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
Soheab a6d1dc0455 Add support for getting the attachment's title 2024-08-28 15:32:20 -04:00
Rapptz efe81a67fb Fix Message.poll not prioritising API data over cached data 2024-05-22 09:04:37 -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
Soheab 2248fc1946 Fix various code around Message.interaction(_metadata) 2024-05-06 18:17:37 -04:00
SoheabandDanny 963bb08557 Add support for Message.interaction_metadata
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2024-05-05 23:36:08 -04:00
AndrinandDanny 08ef42fedf Add new incident message types
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2023-12-18 17:45:44 -05:00
Lilly Rose Berner 29344b9cce Add thread getters to Message 2023-12-10 11:37:03 -05:00
Soheab_ 14faa9bdab Add support for attachment flags 2023-07-14 21:41:44 -04:00
Rapptz c5da0fe7c1 Remove and address stale TODO comments 2023-06-11 12:41:04 -04:00
Rapptz f1bade4bda Hoist webhook detection outside of store_user helper 2023-06-11 12:41:04 -04:00
RedGuy12 54c62d7ef8 Fix system message for channel_icon_change 2023-05-19 20:35:56 -04:00
Andrin SandDanny 1767be0081 Add support for voice messages
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2023-04-20 00:08:04 -04:00
Rapptz 0adef0ec89 Update auto_archive_duration documentation
Fix #9351
2023-04-18 06:03:48 -04:00
Andrin S 2ddb9d22ba Add overloads to reply and send 2023-03-30 08:36:33 -04:00
Rapptz bd6bbdab00 Add support for stage message types 2023-02-27 09:17:40 -05:00
Rapptz fd9f3e9eff Update docs with references to text in stage 2023-02-25 03:27:04 -05:00
Rapptz da4651c97c Implement Messageable for StageChannel
Fix #9248
2023-02-25 03:13:55 -05:00
owocado 3644f7849c Document auto_archive_duration accepted values 2023-02-23 07:23:22 -05:00
Rapptz 94fa00fbfd Clarify documentation on Message.publish 2023-02-13 23:54:02 -05:00
Rapptz a2b09c0ecd Remove unused import 2023-02-11 18:40:17 -05:00
Rapptz ec71a46907 Fix Message.channel rebinding sometimes being Object 2023-02-11 18:25:42 -05:00