From bb45e050b9f46d5bb3d530d890a0966ef4e9ec99 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 24 Aug 2025 09:29:21 -0400 Subject: [PATCH] Change Modal inheritance to BaseView instead of View --- discord/ui/modal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/ui/modal.py b/discord/ui/modal.py index cea93e6e6..4a58dcc06 100644 --- a/discord/ui/modal.py +++ b/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 .._types import ClientT from .item import Item -from .view import View +from .view import BaseView from .select import BaseSelect from .text_input import TextInput @@ -54,7 +54,7 @@ __all__ = ( _log = logging.getLogger(__name__) -class Modal(View): +class Modal(BaseView): """Represents a UI modal. This object must be inherited to create a modal popup window within discord.