Rapptz
|
074f34a5fa
|
Specify View timeouts is in seconds
|
4 years ago |
Rapptz
|
097b6064f1
|
Fix ui.Button constructor default style to match the decorator
|
4 years ago |
Rapptz
|
d7ed884593
|
Rework view timeouts to work as documented
|
4 years ago |
Rapptz
|
9ac459b5d3
|
Add a default style for buttons
This makes it easier to create URL buttons since the library will
automatically assign the proper style for it.
|
4 years ago |
Rapptz
|
812bfbe6f9
|
Show Select.values more prominently in the documentation
|
4 years ago |
jack1142
|
30605e6f4f
|
Add Select to list of types in Item's docstring
|
4 years ago |
Josh
|
d001b9d0ee
|
[docs] Fix more references
Co-Authored-By: Riley Shaw <[email protected]>
|
4 years ago |
Rapptz
|
c1f1c67eed
|
Change timeout parameter in View.from_message to keyword only
|
4 years ago |
Rapptz
|
d8075d5412
|
Add View.from_message to convert message components to a View
|
4 years ago |
Rapptz
|
157caaec7c
|
Add conversion routine for SelectMenu to ui.Select
|
4 years ago |
Nadir Chowdhury
|
abac04b759
|
Fix link buttons not being regarded as persistent
|
4 years ago |
Josh
|
233d10649c
|
[docs] Update Sphinx and Fix various references
Co-Authored-By: Riley Shaw <[email protected]>
|
4 years ago |
Rapptz
|
1c640ad72b
|
Lazily create Button custom_ids in decorator interface
The previous code would make two separate instances share the custom_id
which might have been undesirable behaviour
|
4 years ago |
Rapptz
|
04573c3c06
|
Make View timeout parameter keyword-only
|
4 years ago |
UP929312
|
4724943861
|
Grammatical improvements in View documentation
|
4 years ago |
Rapptz
|
81e9d70b7b
|
Add pre-conditions to avoid on_timeout being called after stop()
Apparently the cancellation request for a TimerHandle doesn't
necessarily have to be honoured despite large periods of time passing
|
4 years ago |
Rapptz
|
876b1e0f3e
|
Add View.on_error callback for swallowed exceptions
|
4 years ago |
Rapptz
|
dbd9ed2c41
|
Add View.is_dispatching to detect whether a view has been added
|
4 years ago |
Rapptz
|
47f2d04940
|
Allow passing Emoji in components
|
4 years ago |
Rapptz
|
78275023cc
|
Add Client.persistent_views to get all persistent views
|
4 years ago |
Rapptz
|
7c40e83d10
|
Ensure views added to Client.add_view are persistent views
|
4 years ago |
Rapptz
|
c811932ca7
|
Don't mark URL buttons as dispatchable
|
4 years ago |
Rapptz
|
09f0ed1fba
|
Mention that rows are explicitly 0 indexed.
|
4 years ago |
Rapptz
|
d0097c4281
|
Remove view syncing before editing in views
This prevents a potential race condition when a MESSAGE_UPDATE is
received syncing and refreshing the view components causing a desync.
|
4 years ago |
Rapptz
|
2ed3e049e1
|
Add View.is_finished() to query listening state
|
4 years ago |
Rapptz
|
90a28d48d5
|
Fix potential KeyError when removing views
|
4 years ago |
Rapptz
|
c9cdb47338
|
Add __repr__ for View
|
4 years ago |
Rapptz
|
1b15772671
|
Allow assigning Select.options to refresh the select menu
|
4 years ago |
Rapptz
|
7bd1211b36
|
Rework item grouping behaviour to take into consideration weights
This also renames `group` into `row`
|
4 years ago |
Rapptz
|
c21d12be5e
|
Check future state before setting result in View
|
4 years ago |
Rapptz
|
f321efd4de
|
Default SelectOption.value to the label if not given
|
4 years ago |
Rapptz
|
f4fe247813
|
Remove __slots__ from View
|
4 years ago |
Rapptz
|
ef9f61a933
|
Add support for select components
|
4 years ago |
Rapptz
|
6874aa73c4
|
Add PartialEmoji.from_str helper
|
4 years ago |
Rapptz
|
263f45d05b
|
Fix View.wait not returning when it times out
This also makes it so it returns the reason why the wait finished.
|
4 years ago |
Rapptz
|
3f60997630
|
Add a timeout callback for detecting when a View times out
|
4 years ago |
Rapptz
|
97f308d219
|
Add View.remove_item and View.clear_items
|
4 years ago |
Rapptz
|
3453992ce6
|
Add View.interaction_check for interaction pre-conditions
|
4 years ago |
Rapptz
|
65db814d4a
|
Add a way to wait for a view to finish its interactions
|
4 years ago |
Zomatree
|
6cc3e572ba
|
Button labels can be None
|
4 years ago |
Rapptz
|
fbafe20e51
|
Allow View to be instantiated without subclassing
|
4 years ago |
Rapptz
|
7584834dd4
|
Only automatically defer if no response was given in callback
|
4 years ago |
Rapptz
|
5e96ad9261
|
Force button style to link if a URL is passed
|
4 years ago |
Rapptz
|
eda6680377
|
Rename enums to use official API naming
|
4 years ago |
Rapptz
|
ed9badcddf
|
Make Item and Button generic over the underlying view
|
4 years ago |
Rapptz
|
4c0ebc9221
|
Change the way callbacks are defined to allow deriving
This should hopefully make these work more consistently as other
functions do.
|
4 years ago |
Rapptz
|
98570793e4
|
Add initial support for buttons and components
|
4 years ago |