Add versionadded to ui.View and ui.Item

This commit is contained in:
scrazzz 2021-07-21 09:47:52 +03:00 committed by GitHub
parent 07483297ad
commit a0e5e062c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

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',)

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`]