Commit Graph

24 Commits

Author SHA1 Message Date
d5946d1cbc Fix bounds for TextInput and Label generic
Fix #10280
2025-08-25 11:29:44 -04:00
3fb627d078 Add support for label components and select in modals 2025-08-14 00:47:55 -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
070ae24d8d Document all limits in discord.ui 2024-01-26 20:08:00 -05: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
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
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
cdce8fae5b Change ui.TextInput.value to not be Optional 2022-08-17 02:26:17 -04:00
7267d18d9e Improve component typing 2022-05-16 15:30:03 -04:00
e7ce8b6b77 Add container operations documentation to TextInput 2022-04-30 03:58:11 -04:00
7ee15e1d68 Use typing.Literal for channel and component type annotation 2022-04-29 06:07:22 -04:00
e515378076 Remove annotation on row property in subclasses 2022-03-29 23:04:34 -04:00
3215cb65e2 Raise if custom_id is not a str 2022-03-29 23:04:34 -04:00
6d494585f5 Correct documentation for TextInput.custom_id 2022-03-23 18:38:22 -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
37d55c8ec4 Add TextInput.__str__ special method
Closes #7504
2022-03-05 21:05:46 -05:00
147948af9b Use typing.Self throughout library 2022-03-01 07:53:24 -05:00
90cabd1673 Fix various typos 2022-02-27 21:19:19 -05:00
d01e73fca5 Document more uses of type ignore 2022-02-21 23:08:26 -05:00
6dbd40a8ef Remove use of typing.Self from TextInput 2022-02-21 09:13:18 -05:00
e56f64218a Rename default_value to default for TextInput 2022-02-20 11:04:50 -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