29 Commits

Author SHA1 Message Date
Soheab_
0efc05ccce
Fix certain select types not appearing in Message.components 2023-06-23 00:19:52 -04: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
Ionite
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
chawkk6404
e62473a1b4
Fix incorrect docs in select menu min_values 2022-08-27 03:09:03 -04:00
z03h
53694724c1
Add emoji property to SelectOption 2022-05-28 23:47:19 -04:00
Lilly Rose Berner
7267d18d9e
Improve component typing 2022-05-16 15:30:03 -04:00
Rapptz
79d34fbe78 Change Select.type to use a Literal 2022-05-02 08:22:25 -04:00
Lilly Rose Berner
7ee15e1d68
Use typing.Literal for channel and component type annotation 2022-04-29 06:07:22 -04:00
jack1142
5ffa3e85de
Update comments after # type: ignore to be compatible with PEP 484 2022-03-27 22:26:34 -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
Josh
147948af9b
Use typing.Self throughout library 2022-03-01 07:53:24 -05:00
Rapptz
d01e73fca5 Document more uses of type ignore 2022-02-21 23:08:26 -05:00
Rapptz
e56f64218a Rename default_value to default for TextInput 2022-02-20 11:04:50 -05:00
Rapptz
a1e64dd657 Fix Sphinx build failing
TextInput was missing in `__all__`.
2022-02-20 08:31:16 -05:00
Josh
19c6687b55
Add support for Modal Interactions 2022-02-20 04:57:44 -05:00
Rapptz
3382d2e9e8 Update documentation on select limits 2021-08-25 09:21:49 -04:00
Lucas Hardt
ca9b371982
Add support for discord.ui.Select.disabled 2021-07-28 19:58:39 -04:00
Rapptz
feb0f7f29d Add SelectOption.__str__ 2021-07-04 21:20:48 -04:00
Rapptz
9f981e718b Mention the discord.ui types in the read-only component types 2021-07-03 08:39:02 -04:00
Josh
233d10649c
[docs] Update Sphinx and Fix various references
Co-Authored-By: Riley Shaw <30989490+ShineyDev@users.noreply.github.com>
2021-06-27 23:43:49 -04:00
Rapptz
4b1059579e Fix NameError in missing _EmojiTag import 2021-06-02 06:00:39 -04:00
Rapptz
47f2d04940 Allow passing Emoji in components 2021-06-02 05:30:42 -04:00
Rapptz
f321efd4de Default SelectOption.value to the label if not given 2021-05-28 09:43:15 -04:00
Rapptz
b84c199c70 Allow constructing SelectOption.emoji from a string as well 2021-05-28 09:40:49 -04:00
Rapptz
ff36aedf7b Add support for reading SelectMenu components from messages 2021-05-28 05:34:21 -04:00
Rapptz
8bd17ede47 Move ActionRow to its own separate type split from Component 2021-05-28 02:11:10 -04:00
Zomatree
6cc3e572ba
Button labels can be None 2021-05-27 22:33:13 -04:00
Rapptz
cc56f31bcd Fix emoji not showing up in button component 2021-05-27 00:53:13 -04:00
Rapptz
98570793e4 Add initial support for buttons and components 2021-05-27 00:53:13 -04:00