aboutsummaryrefslogtreecommitdiff
path: root/discord/ui
Commit message (Collapse)AuthorAgeFilesLines
* Update documentation on select limitsRapptz2021-08-251-2/+2
|
* Fallback to None message_id searches in View dispatchRapptz2021-08-011-1/+3
| | | | | | | Not all persistent views have an associated message_id attached to them. Fix #7319
* Remove unused variable in viewRapptz2021-08-011-1/+0
|
* Change View dispatch mechanism to be keyed by message_id as wellRapptz2021-07-311-5/+6
| | | | | | | | If different persistent view instances are used within different message_ids their callbacks will get called without differentiating between them, leading to potential issues such as 404 errors. This change makes it so N views with custom IDs bound to N message_ids will no longer conflict with one another.
* Add support for discord.ui.Select.disabledLucas Hardt2021-07-281-1/+21
|
* Add versionadded to ui.View and ui.Itemscrazzz2021-07-212-0/+4
|
* Fix documentation note for interaction_checkKaylynn Morgan2021-07-211-3/+2
|
* Undocument Item.widthRapptz2021-07-091-1/+0
| | | | It doesn't serve much of a purpose to users
* Remove extraneous dict assignment from view storeRapptz2021-07-071-1/+0
|
* Specify View timeouts is in secondsRapptz2021-07-041-1/+1
|
* Fix ui.Button constructor default style to match the decoratorRapptz2021-07-031-1/+1
|
* Rework view timeouts to work as documentedRapptz2021-07-021-34/+63
|
* Add a default style for buttonsRapptz2021-07-011-1/+1
| | | | | This makes it easier to create URL buttons since the library will automatically assign the proper style for it.
* Show Select.values more prominently in the documentationRapptz2021-07-011-0/+4
|
* Add Select to list of types in Item's docstringjack11422021-07-011-0/+1
|
* [docs] Fix more referencesJosh2021-07-012-3/+3
| | | Co-Authored-By: Riley Shaw <[email protected]>
* Change timeout parameter in View.from_message to keyword onlyRapptz2021-06-301-1/+1
|
* Add View.from_message to convert message components to a ViewRapptz2021-06-301-0/+31
|
* Add conversion routine for SelectMenu to ui.SelectRapptz2021-06-301-1/+5
|
* Fix link buttons not being regarded as persistentNadir Chowdhury2021-06-291-0/+5
|
* [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
|