diff --git a/discord/ui/view.py b/discord/ui/view.py index e1f53bd8e..4fd528ee3 100644 --- a/discord/ui/view.py +++ b/discord/ui/view.py @@ -24,7 +24,6 @@ DEALINGS IN THE SOFTWARE. from __future__ import annotations -import warnings from typing import ( Any, Callable, @@ -571,8 +570,6 @@ class View(BaseView): This object must be inherited to create a UI within Discord. .. versionadded:: 2.0 - .. deprecated:: 2.6 - This class is deprecated and will be removed in a future version. Use :class:`LayoutView` instead. Parameters ----------- @@ -584,11 +581,6 @@ class View(BaseView): __discord_ui_view__: ClassVar[bool] = True def __init_subclass__(cls) -> None: - warnings.warn( - 'discord.ui.View and subclasses are deprecated and will be removed in ' - 'a future version, use discord.ui.LayoutView instead', - DeprecationWarning, - ) super().__init_subclass__() children: Dict[str, ItemCallbackType[Any]] = {}