|
|
@ -567,8 +567,8 @@ 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 |
|
|
|
----------- |
|
|
@ -581,7 +581,8 @@ class View(BaseView): |
|
|
|
|
|
|
|
def __init_subclass__(cls) -> None: |
|
|
|
warnings.warn( |
|
|
|
'discord.ui.View and subclasses are deprecated, use discord.ui.LayoutView instead', |
|
|
|
'discord.ui.View and subclasses are deprecated and will be removed in' |
|
|
|
'a future version, use discord.ui.LayoutView instead', |
|
|
|
DeprecationWarning, |
|
|
|
) |
|
|
|
super().__init_subclass__() |
|
|
|