mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-16 19:59:18 +00:00
Change Modal inheritance to BaseView instead of View
This commit is contained in:
@@ -33,7 +33,7 @@ from typing import TYPE_CHECKING, Any, Dict, Optional, Sequence, ClassVar, List
|
|||||||
from ..utils import MISSING, find
|
from ..utils import MISSING, find
|
||||||
from .._types import ClientT
|
from .._types import ClientT
|
||||||
from .item import Item
|
from .item import Item
|
||||||
from .view import View
|
from .view import BaseView
|
||||||
from .select import BaseSelect
|
from .select import BaseSelect
|
||||||
from .text_input import TextInput
|
from .text_input import TextInput
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@ __all__ = (
|
|||||||
_log = logging.getLogger(__name__)
|
_log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class Modal(View):
|
class Modal(BaseView):
|
||||||
"""Represents a UI modal.
|
"""Represents a UI modal.
|
||||||
|
|
||||||
This object must be inherited to create a modal popup window within discord.
|
This object must be inherited to create a modal popup window within discord.
|
||||||
|
Reference in New Issue
Block a user