Commit Graph

21 Commits

Author SHA1 Message Date
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
968a1f366f Change View callback order to (self, interaction, item)
This is more consistent with the rest of the library which always has
the interaction as the first parameter. This has been done before in
the command extension as well, the first parameter is always either
self or the context.
2022-03-24 23:00:50 -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
4c8b1f9abd Remove unused imports 2022-03-05 21:40:42 -05:00
147948af9b Use typing.Self throughout library 2022-03-01 07:53:24 -05:00
d409ddd227 Alter return-type of button/select decorators 2022-02-21 21:54:44 -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
3382d2e9e8 Update documentation on select limits 2021-08-25 09:21:49 -04:00
ca9b371982 Add support for discord.ui.Select.disabled 2021-07-28 19:58:39 -04:00
812bfbe6f9 Show Select.values more prominently in the documentation 2021-07-01 20:33:57 -04:00
d001b9d0ee [docs] Fix more references
Co-Authored-By: Riley Shaw <30989490+ShineyDev@users.noreply.github.com>
2021-07-01 07:48:37 -04:00
47f2d04940 Allow passing Emoji in components 2021-06-02 05:30:42 -04:00
7c40e83d10 Ensure views added to Client.add_view are persistent views 2021-05-31 23:08:08 -04:00
09f0ed1fba Mention that rows are explicitly 0 indexed. 2021-05-31 20:19:08 -04:00
1b15772671 Allow assigning Select.options to refresh the select menu 2021-05-30 03:20:29 -04:00
7bd1211b36 Rework item grouping behaviour to take into consideration weights
This also renames `group` into `row`
2021-05-29 23:58:37 -04:00
f321efd4de Default SelectOption.value to the label if not given 2021-05-28 09:43:15 -04:00
ef9f61a933 Add support for select components 2021-05-28 05:34:21 -04:00