aboutsummaryrefslogtreecommitdiff
path: root/discord/ui
Commit message (Collapse)AuthorAgeFilesLines
* [docs] Update Sphinx and Fix various referencesJosh2021-06-272-8/+8
| | | Co-Authored-By: Riley Shaw <[email protected]>
* Lazily create Button custom_ids in decorator interfaceRapptz2021-06-121-2/+0
| | | | | The previous code would make two separate instances share the custom_id which might have been undesirable behaviour
* Make View timeout parameter keyword-onlyRapptz2021-06-101-1/+1
|
* Grammatical improvements in View documentationUP9293122021-06-081-2/+2
|
* Add pre-conditions to avoid on_timeout being called after stop()Rapptz2021-06-061-2/+4
| | | | | Apparently the cancellation request for a TimerHandle doesn't necessarily have to be honoured despite large periods of time passing
* Add View.on_error callback for swallowed exceptionsRapptz2021-06-051-10/+31
|
* Add View.is_dispatching to detect whether a view has been addedRapptz2021-06-041-0/+5
|
* Allow passing Emoji in componentsRapptz2021-06-022-16/+23
|
* Add Client.persistent_views to get all persistent viewsRapptz2021-05-311-1/+10
|
* Ensure views added to Client.add_view are persistent viewsRapptz2021-05-314-0/+20
|
* Don't mark URL buttons as dispatchableRapptz2021-05-311-1/+1
|
* Mention that rows are explicitly 0 indexed.Rapptz2021-05-312-4/+4
|
* Remove view syncing before editing in viewsRapptz2021-05-311-0/+3
| | | | | This prevents a potential race condition when a MESSAGE_UPDATE is received syncing and refreshing the view components causing a desync.
* Add View.is_finished() to query listening stateRapptz2021-05-311-0/+4
|
* Fix potential KeyError when removing viewsRapptz2021-05-301-1/+1
|
* Add __repr__ for ViewRapptz2021-05-301-0/+3
|
* Allow assigning Select.options to refresh the select menuRapptz2021-05-301-0/+9
|
* Rework item grouping behaviour to take into consideration weightsRapptz2021-05-294-45/+120
| | | | This also renames `group` into `row`
* Check future state before setting result in ViewRapptz2021-05-291-2/+5
|
* Default SelectOption.value to the label if not givenRapptz2021-05-281-2/+2
|
* Remove __slots__ from ViewRapptz2021-05-281-7/+0
|
* Add support for select componentsRapptz2021-05-285-5/+327
|
* Add PartialEmoji.from_str helperRapptz2021-05-281-22/+8
|
* Fix View.wait not returning when it times outRapptz2021-05-281-5/+14
| | | | This also makes it so it returns the reason why the wait finished.
* Add a timeout callback for detecting when a View times outRapptz2021-05-281-3/+24
|
* Add View.remove_item and View.clear_itemsRapptz2021-05-281-0/+18
|
* Add View.interaction_check for interaction pre-conditionsRapptz2021-05-281-0/+36
|
* Add a way to wait for a view to finish its interactionsRapptz2021-05-271-0/+9
|
* Button labels can be NoneZomatree2021-05-271-10/+10
|
* Allow View to be instantiated without subclassingRapptz2021-05-271-3/+1
|
* Only automatically defer if no response was given in callbackRapptz2021-05-271-1/+2
|
* Force button style to link if a URL is passedRapptz2021-05-271-0/+3
|
* Rename enums to use official API namingRapptz2021-05-272-2/+2
|
* Make Item and Button generic over the underlying viewRapptz2021-05-272-6/+8
|
* Change the way callbacks are defined to allow derivingRapptz2021-05-273-89/+45
| | | | | This should hopefully make these work more consistently as other functions do.
* Add initial support for buttons and componentsRapptz2021-05-274-0/+712