Bryan Forbes
1de3562f34
Fix partially uknown typing errors
2023-03-01 19:14:50 -05:00
Rapptz
bbba8c650f
Add missing generic parameters on various Interaction parameters
2023-01-19 07:00:16 -05:00
Alex Nørgaard
c677ad0312
Add missing generic to interaction in item callback
2023-01-19 04:38:39 -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
Willy
5456c0cae9
Add TextInput to Item docstring
2022-04-17 05:28:29 -04:00
Rapptz
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
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
Neon Jonn
adb69e7157
Fix some spelling mistakes
2022-03-10 20:45:16 -05:00
Josh
d409ddd227
Alter return-type of button/select decorators
2022-02-21 21:54:44 -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
scrazzz
a0e5e062c9
Add versionadded to ui.View and ui.Item
2021-07-21 02:47:52 -04:00
Rapptz
f153154b7a
Undocument Item.width
...
It doesn't serve much of a purpose to users
2021-07-09 09:14:01 -04:00
jack1142
30605e6f4f
Add Select to list of types in Item's docstring
2021-07-01 07:50:04 -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
7c40e83d10
Ensure views added to Client.add_view are persistent views
2021-05-31 23:08:08 -04:00
Rapptz
7bd1211b36
Rework item grouping behaviour to take into consideration weights
...
This also renames `group` into `row`
2021-05-29 23:58:37 -04:00
Rapptz
ef9f61a933
Add support for select components
2021-05-28 05:34:21 -04:00
Rapptz
ed9badcddf
Make Item and Button generic over the underlying view
2021-05-27 00:53:14 -04:00
Rapptz
4c0ebc9221
Change the way callbacks are defined to allow deriving
...
This should hopefully make these work more consistently as other
functions do.
2021-05-27 00:53:14 -04:00
Rapptz
98570793e4
Add initial support for buttons and components
2021-05-27 00:53:13 -04:00