Browse Source

Merge branch 'feat/components-v2' of https://github.com/DA-344/d.py into feat/components-v2

pull/10166/head
DA-344 1 month ago
parent
commit
01d3bb25e3
  1. 8
      discord/ui/view.py

8
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]] = {}

Loading…
Cancel
Save