mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-22 10:56:44 +00:00
Add versionadded to ui.View and ui.Item
This commit is contained in:
parent
07483297ad
commit
a0e5e062c9
@ -49,6 +49,8 @@ class Item(Generic[V]):
|
|||||||
|
|
||||||
- :class:`discord.ui.Button`
|
- :class:`discord.ui.Button`
|
||||||
- :class:`discord.ui.Select`
|
- :class:`discord.ui.Select`
|
||||||
|
|
||||||
|
.. versionadded:: 2.0
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__item_repr_attributes__: Tuple[str, ...] = ('row',)
|
__item_repr_attributes__: Tuple[str, ...] = ('row',)
|
||||||
|
@ -120,6 +120,8 @@ class View:
|
|||||||
|
|
||||||
This object must be inherited to create a UI within Discord.
|
This object must be inherited to create a UI within Discord.
|
||||||
|
|
||||||
|
.. versionadded:: 2.0
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
-----------
|
-----------
|
||||||
timeout: Optional[:class:`float`]
|
timeout: Optional[:class:`float`]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user