Commit Graph
17 Commits
Author SHA1 Message Date
Rapptz f321efd4de Default SelectOption.value to the label if not given 2021-05-28 09:43:15 -04:00
Rapptz f4fe247813 Remove __slots__ from View 2021-05-28 08:39:34 -04:00
Rapptz ef9f61a933 Add support for select components 2021-05-28 05:34:21 -04:00
Rapptz 6874aa73c4 Add PartialEmoji.from_str helper 2021-05-28 05:34:21 -04:00
Rapptz 263f45d05b Fix View.wait not returning when it times out
This also makes it so it returns the reason why the wait finished.
2021-05-28 00:53:28 -04:00
Rapptz 3f60997630 Add a timeout callback for detecting when a View times out 2021-05-28 00:53:28 -04:00
Rapptz 97f308d219 Add View.remove_item and View.clear_items 2021-05-28 00:53:28 -04:00
Rapptz 3453992ce6 Add View.interaction_check for interaction pre-conditions 2021-05-28 00:53:28 -04:00
Rapptz 65db814d4a Add a way to wait for a view to finish its interactions 2021-05-27 23:31:48 -04:00
ZomatreeandGitHub 6cc3e572ba Button labels can be None 2021-05-27 22:33:13 -04:00
Rapptz fbafe20e51 Allow View to be instantiated without subclassing 2021-05-27 01:41:18 -04:00
Rapptz 7584834dd4 Only automatically defer if no response was given in callback 2021-05-27 00:53:14 -04:00
Rapptz 5e96ad9261 Force button style to link if a URL is passed 2021-05-27 00:53:14 -04:00
Rapptz eda6680377 Rename enums to use official API naming 2021-05-27 00:53:14 -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