20 Commits

Author SHA1 Message Date
Soheab_
070ae24d8d
Document all limits in discord.ui 2024-01-26 20:08:00 -05:00
Murtada Altarouti
9717317c78
Add missing import to modal example 2023-05-13 14:16:52 -04:00
Rapptz
bbba8c650f Add missing generic parameters on various Interaction parameters 2023-01-19 07:00:16 -05:00
Trevor
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
Bryan Forbes
b12b4b18fd
Mark public callbacks as positional-only 2022-08-22 15:21:19 -04:00
Mikey
9c38cf3aef
Fix ui.Select.values in modals 2022-08-14 15:25:43 -04:00
mniip
1be36c9c3e
Change View, Modal, and AudioPlayer to use logger instead of stderr 2022-06-22 02:10:02 -04:00
Server Bot
902aa245a4
Swap order of arguments in Modal.on_error 2022-05-06 20:16:42 -04:00
Omkaar
1e914e8945
Document Modal parameter limits 2022-04-08 23:58:18 -04:00
Rapptz
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
Kellen
0f18d93e47
Remove unused imports 2022-04-02 04:58:39 -04:00
Rapptz
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
Rapptz
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
Narmy
3fd8f76c61
Add missing underscore in Modal refresh method 2022-03-14 21:00:39 -04:00
Rapptz
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
Stocker
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
Sebastian Law
87415ab5a7
Fix modal docs code block warning 2022-03-06 19:16:23 -05:00
Pawnyy
6788ec2533
Add docstring example for ui.Modal 2022-03-06 18:29:38 -05:00
Rapptz
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
Josh
19c6687b55
Add support for Modal Interactions 2022-02-20 04:57:44 -05:00