Browse Source

chore: remove deprecation warning

pull/10166/head
DA344 2 months ago
committed by GitHub
parent
commit
f5415f5c59
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 7
      discord/ui/view.py

7
discord/ui/view.py

@ -571,8 +571,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 +582,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