mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-08-28 14:05:05 +00:00
Change Modal inheritance to BaseView instead of View
This commit is contained in:
parent
fe7ce982f3
commit
bb45e050b9
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user