Add versionadded to ui.View and ui.Item

This commit is contained in:
scrazzz
2021-07-21 02:47:52 -04:00
committed by GitHub
parent 07483297ad
commit a0e5e062c9
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -49,6 +49,8 @@ class Item(Generic[V]):
- :class:`discord.ui.Button`
- :class:`discord.ui.Select`
.. versionadded:: 2.0
"""
__item_repr_attributes__: Tuple[str, ...] = ('row',)
+2
View File
@@ -120,6 +120,8 @@ class View:
This object must be inherited to create a UI within Discord.
.. versionadded:: 2.0
Parameters
-----------
timeout: Optional[:class:`float`]