Commit Graph

149 Commits

Author SHA1 Message Date
8953938a53 Update Pyright to v1.1.394 2025-02-18 03:29:09 -05:00
6ab747f9e5 Add support for sending views in stateless webhooks 2025-02-17 18:37:20 -05:00
97ca618570 Fix incorrect Select max option condition 2024-07-05 16:18:01 -04:00
c055fd32bb Fix ui.Button providing a custom_id for premium buttons 2024-06-15 07:46:36 -04:00
be9edf8deb Remove setting sku_id explicitly via button decorator
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2024-06-15 07:38:58 -04:00
356474ffb9 Add ButtonStyle.premium 2024-06-01 03:48:50 -04:00
2248fc1946 Fix various code around Message.interaction(_metadata) 2024-05-06 18:17:37 -04:00
dc6d33c303 copy over original row position for dynamic items 2024-04-18 03:33:43 -04:00
4e03b170ef Update pyright version 2024-02-20 13:36:02 -05:00
76666fbcf4 Properly check for maximum number of children 2024-02-17 01:17:31 -05:00
070ae24d8d Document all limits in discord.ui 2024-01-26 20:08:00 -05:00
3258507b4a Call inner item callback and interaction_check by default 2024-01-24 13:25:48 -05:00
de6a6af5d3 Fix DynamicItem row attribute being overridden 2024-01-06 06:11:39 -05:00
078b500657 Fix dynamic item views having a timeout causing it to evict 2023-12-30 05:00:12 -05:00
3009c46080 Fix typo in documentation; "users" -> "roles" 2023-11-19 19:04:05 -05:00
698363e76b Refactor from_components for Select classes
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2023-09-30 21:21:29 -04:00
f617d01eee Refactor human_join into its own private helper function 2023-09-30 13:11:29 -04:00
d7f8a39a66 Remove duplicated doc for default_values kwarg for select decorator 2023-09-30 12:47:19 -04:00
c115cfb0ac Remove unnecessary comments 2023-09-29 19:05:52 -04:00
7f7a0acd21 Fix GuildChannel subclasses not working with default select values
This also fixes it so ClientUser is respected as well
2023-09-29 19:04:15 -04:00
c5ecc42c72 Add support for default_values field on selects 2023-09-29 15:55:20 -04:00
5126323640 Add custom_id string to DynamicItem template regex error 2023-09-16 22:47:49 -04:00
e67d00502d Fix View.from_message not creating other Selects 2023-09-12 13:03:29 -04:00
94655cd804 Skip adding views to the synced message store if fully dynamic 2023-09-03 02:52:05 -04:00
f793af0456 Add item parameter to DynamicItem.from_custom_id 2023-09-03 02:52:05 -04:00
7c3868ef3b Add Client.remove_dynamic_items 2023-09-03 02:52:05 -04:00
a852f90358 Add support for dynamic items that parse custom_id for state 2023-09-03 02:52:05 -04:00
914773d0fb Remove trailing whitespace 2023-06-04 07:53:25 -04:00
6b6cbc44ce Fix TextInput's is_persistent() flow 2023-06-04 07:50:56 -04:00
9717317c78 Add missing import to modal example 2023-05-13 14:16:52 -04:00
1de3562f34 Fix partially uknown typing errors 2023-03-01 19:14:50 -05:00
40227f75de Fix select decorator type checking error 2023-02-13 23:53:56 -05:00
f7e9795495 Call super for __init_subclass__ in View
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2023-02-12 02:08:39 -05:00
6cb9a84898 Fix views not being removed from message store backing
This uses the original interaction ID if available for cache eviction
2023-01-25 02:37:30 -05:00
bbba8c650f Add missing generic parameters on various Interaction parameters 2023-01-19 07:00:16 -05:00
c677ad0312 Add missing generic to interaction in item callback 2023-01-19 04:38:39 -05:00
ed40d55f99 Fix overloads for select decorator 2023-01-16 20:54:29 -05:00
7cf3cd51a5 Revert "Infer select type from callback annotation 2022-12-18 05:17:41 -05:00
b671958e11 Infer select type from callback annotation 2022-12-14 21:59:16 -05:00
f61f7411df Add setter method for ChannelSelect.channel_types 2022-11-17 05:46:09 -05:00
5009c83bc9 Implement New Select Types
Co-authored-by: Soheab_ <33902984+Soheab@users.noreply.github.com>
Co-authored-by: rdrescher909 <51489753+rdrescher909@users.noreply.github.com>
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2022-10-27 10:03:45 -04:00
95b6bd8782 Add coro tag to docstrings that were missing it 2022-10-02 17:52:18 -04:00
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
e62473a1b4 Fix incorrect docs in select menu min_values 2022-08-27 03:09:03 -04:00
b12b4b18fd Mark public callbacks as positional-only 2022-08-22 15:21:19 -04:00
6327402730 Update View timeout only if interaction_check passes 2022-08-18 18:55:50 -04:00
cdce8fae5b Change ui.TextInput.value to not be Optional 2022-08-17 02:26:17 -04:00
ff1dd586d3 Always use last value as a fallback for Select.values 2022-08-14 15:50:16 -04:00
9c38cf3aef Fix ui.Select.values in modals 2022-08-14 15:25:43 -04:00
d826f4f3a8 Change ui.Select.values to a ContextVar to avoid race conditions 2022-08-09 08:37:46 -04:00