From a0e5e062c9c578db06a2f590898bc4917e27dc35 Mon Sep 17 00:00:00 2001 From: scrazzz <70033559+scrazzz@users.noreply.github.com> Date: Wed, 21 Jul 2021 09:47:52 +0300 Subject: [PATCH] Add versionadded to ui.View and ui.Item --- discord/ui/item.py | 2 ++ discord/ui/view.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/discord/ui/item.py b/discord/ui/item.py index d79fd9370..46c529707 100644 --- a/discord/ui/item.py +++ b/discord/ui/item.py @@ -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',) diff --git a/discord/ui/view.py b/discord/ui/view.py index 671656cef..462b6f83d 100644 --- a/discord/ui/view.py +++ b/discord/ui/view.py @@ -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`]