Commit Graph

5392 Commits

Author SHA1 Message Date
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
Rapptz
616137875b Fix memory leak with the view store when removing items
The previous code would maintain items in the dispatch mapping if
nested children were removed between calls because it would only
remove items that are live in the view at the point of removal. This
meant that calling something like ActionRow.clear_items() would keep
all the removed items within the mapping and would not be evicted.

This attempts to fix it by maintaining a cache state snapshot and
making a diff between the two versions to know which keys are now safe
to delete since they are no longer in the live view at all.
2026-03-02 11:33:51 -05:00
Rapptz
9798e5921a Version bump for development 2026-02-27 13:49:41 -05:00
Rapptz
5df6e2230a Version bump to v2.7.0 v2.7.0 2026-02-27 13:49:19 -05:00
Rapptz
8c232c1cbd Add v2.7.0 changelog 2026-02-27 13:48:51 -05:00
Rapptz
e55b308c1a Add AI contribution guideline 2026-02-26 01:33:25 -05:00
Rapptz
198549822e Close websocket when reconnecting websocket during polling
Close #10409
2026-02-25 12:08:49 -05:00
levin
7f9c3b1b40 Fix FFmpeg errors not sent to after callback 2026-02-25 12:03:02 -05:00
Steve C
59d7a55a41 [tasks] Add overloads 2026-02-25 11:54:11 -05:00
Rapptz
79b709290c Add client parameter to PartialEmoji.from_str
Fix #10407
2026-02-24 09:47:10 -05:00
Rapptz
ef1cb6a089 Prevent empty dictionaries from being added to the ViewStore
Fix #10405
2026-02-23 02:31:55 -05:00
Alex Nørgaard
8bad09e1d8 Add Discord timestamp converter and transformer 2026-02-22 22:13:10 -05:00
n6ck
fd5a218d7c Add Message.is_forwardable to check if a message can be forwarded 2026-02-22 22:12:39 -05:00
Soheab
598a16e62f Add support for getting an integration's scopes 2026-02-22 17:29:20 -05:00
Rapptz
f780f04447 Update last_send when receiving a HEARTBEAT request 2026-02-22 16:59:18 -05:00
Michael
38d5d8e47a Use walk_children within remove_view 2026-02-22 16:47:15 -05:00
Steve C
91f958cbac Add missing wait_for overloads for soundboard & voice effects 2026-02-22 16:46:24 -05:00
DA344
93fa3cb9d6 Fix (Sync)Webhook.edit_message missing the view parameter 2026-02-22 16:45:49 -05:00
Michael
60e746ca94 Exclude category property from CategoryChannel docs 2026-02-22 16:44:08 -05:00
Michael
46000f78c7 Add guild and user context to autocomplete logs 2026-02-22 16:43:44 -05:00
Soheab
e5263c0870 Add support for new modal components 2026-02-22 16:43:06 -05:00
Thanos
05816daa7e Remove black config and transition isort config to ruff 2026-02-22 16:00:49 -05:00
Steve C
dae46f7d0f Add generics to Interaction params 2026-02-22 15:59:46 -05:00
Sacul
e45c8e60e1 Add bypass slowmode permissions 2026-02-22 15:53:02 -05:00
Soheab
680ca5ee20 Add command_id and custom_id attributes to Interaction 2026-02-22 15:02:14 -05:00
Rapptz
2f1c3fde7b Fix Message.call raising an attribute error when accessed
Fix #10404
2026-02-18 22:27:23 -05:00
Rapptz
103fe90d8b [commands] Fix decorator order mattering for hybrid commands 2026-02-05 09:18:07 -05:00
Rapptz
a7d42b9906 Fallback to Item.row when converting to Modal component list
Fix #10397
2026-02-04 18:57:04 -05:00
Rapptz
3ab09be13c Invert View.is_finished condition when there is no associated Future 2026-01-28 16:58:55 -05:00
Quintenvw
c8b95774cb Change join thread endpoint from POST to PUT 2026-01-14 06:10:36 -05:00
Michael
bcea13e993 Allow ui.View initialization without a running event loop 2026-01-13 18:08:53 -05:00
Rapptz
b9b21ca270 [commands] Fix Context.from_interaction derived Message.type
The previous Message.type when accessed from Context would be an
unknown enum type because the enum was double nested when the proper
type expected by the synthetic payload was an int not an enum.

Fix #10382
2026-01-11 08:02:50 -05:00
Rapptz
1df81fea52 [commands] Mark Cog check special methods as MaybeCoro return
Fix #10354
2026-01-08 08:17:43 -05:00
Snazzah
bd37844be7 Add DAVE protocol support 2026-01-07 16:05:46 -05:00
Rapptz
0052878983 Guard against Item.view being None when dispatching 2025-12-21 12:18:05 -05:00
Sacul
9be91cb093 Optimise utils.find and specialise utils.as_chunks 2025-11-18 19:51:27 -05:00
Rapptz
c342db8534 [commands] Fix flag annotations in 3.14 using annotationlib
Fix #10349
2025-11-12 20:22:45 -05:00
Soheab
9580898c97 Detach view from item when removed 2025-11-12 20:02:19 -05:00
n6ck
b77459a4df Change description to be optional when creating emoji 2025-11-11 22:52:54 -05:00
Michael H
8b15475496 [Zstandard] Decompress even when discord doesn't encode size information 2025-11-07 18:57:01 -05:00
Sacul
0ace5f8b51 Document new timestamp format style 2025-11-07 18:56:24 -05:00
DA344
e2cf721e9c Fix container items having out of date internal state 2025-11-07 18:53:04 -05:00
Sacul
8f2cb60700 Fix inaccurate total_children_count property in modals 2025-10-28 07:51:15 -04:00
Soheab
09f748d48f Add uv.lock and pylock.toml to gitignore 2025-10-28 07:50:55 -04:00
beerpsi
62cb74b7d8 Do not assume Python 3.14 has compression.zstd 2025-10-28 07:50:33 -04:00
Sacul
055885100d Fix default value for reason parameter in delete_invite 2025-10-28 07:49:25 -04:00
Rapptz
ab8195bbd3 Add support for role member counts 2025-10-16 02:23:49 -04:00
Rapptz
c58b973c7e Add animated=true parameter to animated emoji 2025-10-14 17:33:49 -04:00
Rapptz
9c327df45a Use webp as the default emoji URL format
Fix #10331
2025-10-14 17:20:32 -04:00
Rapptz
6d19bc763c [commands] Fix flag annotations not working under 3.14 2025-10-14 17:16:43 -04:00