9677dada1f
Fix Modal not raising when hitting the 5 item limit
2025-08-24 09:42:41 -04:00
bb45e050b9
Change Modal inheritance to BaseView instead of View
2025-08-24 09:29:41 -04:00
6d5013030b
Flip if statement for wrapped ActionRow components in modals
2025-08-22 19:28:37 -04:00
de09031899
Allow TextDisplay as a top-level component in modals
2025-08-22 19:18:33 -04:00
44a44e938f
Reformat entire project with ruff instead of black
2025-08-18 20:16:10 -04:00
38c6407ffd
Maintain a reference to View dispatched tasks
2025-08-14 00:47:55 -04:00
3fb627d078
Add support for label components and select in modals
2025-08-14 00:47:55 -04:00
070ae24d8d
Document all limits in discord.ui
2024-01-26 20:08:00 -05:00
9717317c78
Add missing import to modal example
2023-05-13 14:16:52 -04:00
bbba8c650f
Add missing generic parameters on various Interaction parameters
2023-01-19 07:00:16 -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
b12b4b18fd
Mark public callbacks as positional-only
2022-08-22 15:21:19 -04:00
9c38cf3aef
Fix ui.Select.values in modals
2022-08-14 15:25:43 -04:00
1be36c9c3e
Change View, Modal, and AudioPlayer to use logger instead of stderr
2022-06-22 02:10:02 -04:00
902aa245a4
Swap order of arguments in Modal.on_error
2022-05-06 20:16:42 -04:00
1e914e8945
Document Modal parameter limits
2022-04-08 23:58:18 -04:00
1458251736
Change View.children to be a property
...
This allows users to call remove_item in a loop. Likewise, it prevents
the footgun of doing children.append(...) which does not uphold the
invariants with the weight system.
2022-04-03 20:13:42 -04:00
0f18d93e47
Remove unused imports
2022-04-02 04:58:39 -04:00
b4fbb08818
Allow runtime modification of timeout expiry at runtime
...
This is done through setting View.timeout while it's running
2022-03-31 01:54:13 -04:00
26457b6d50
Remove automatic defer behaviour from View and Modal
...
This doesn't make as much sense anymore now that
InteractionResponse.edit_message exists.
2022-03-15 10:30:19 -04:00
3fd8f76c61
Add missing underscore in Modal refresh method
2022-03-14 21:00:39 -04:00
934ab4151a
Mark state refresh methods as private with an underscore
...
People kept wondering what it is or what it does.
2022-03-14 07:50:25 -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
87415ab5a7
Fix modal docs code block warning
2022-03-06 19:16:23 -05:00
6788ec2533
Add docstring example for ui.Modal
2022-03-06 18:29:38 -05:00
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.
2022-02-20 08:04:58 -05:00
19c6687b55
Add support for Modal Interactions
2022-02-20 04:57:44 -05:00