Browse Source

Change Modal inheritance to BaseView instead of View

pull/10278/head
Rapptz 3 days ago
parent
commit
bb45e050b9
  1. 4
      discord/ui/modal.py

4
discord/ui/modal.py

@ -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…
Cancel
Save