8989 from .types .interactions import InteractionMetadata as InteractionMetadataPayload
9090 from .types .interactions import MessageInteraction as MessageInteractionPayload
9191 from .ui .modal import Modal
92- from .ui .view import View
92+ from .ui .view import BaseView
9393
9494 InteractionChannel = Union [
9595 VoiceChannel ,
@@ -164,7 +164,7 @@ class Interaction:
164164 The command that this interaction belongs to.
165165
166166 .. versionadded:: 2.7
167- view: Optional[:class:`View `]
167+ view: Optional[:class:`BaseView `]
168168 The view that this interaction belongs to.
169169
170170 .. versionadded:: 2.7
@@ -257,7 +257,7 @@ def _from_data(self, data: InteractionPayload):
257257 )
258258
259259 self .command : ApplicationCommand | None = None
260- self .view : View | None = None
260+ self .view : BaseView | None = None
261261 self .modal : Modal | None = None
262262 self .attachment_size_limit : int = data .get ("attachment_size_limit" )
263263
@@ -522,7 +522,7 @@ async def edit_original_response(
522522 file : File = MISSING ,
523523 files : list [File ] = MISSING ,
524524 attachments : list [Attachment ] = MISSING ,
525- view : View | None = MISSING ,
525+ view : BaseView | None = MISSING ,
526526 allowed_mentions : AllowedMentions | None = None ,
527527 delete_after : float | None = None ,
528528 suppress : bool = False ,
@@ -557,7 +557,7 @@ async def edit_original_response(
557557 allowed_mentions: :class:`AllowedMentions`
558558 Controls the mentions being processed in this message.
559559 See :meth:`.abc.Messageable.send` for more information.
560- view: Optional[:class:`~discord.ui.View `]
560+ view: Optional[:class:`~discord.ui.BaseView `]
561561 The updated view to update this message with. If ``None`` is passed then
562562 the view is removed.
563563 delete_after: Optional[:class:`float`]
@@ -947,7 +947,7 @@ async def send_message(
947947 * ,
948948 embed : Embed = None ,
949949 embeds : list [Embed ] = None ,
950- view : View = None ,
950+ view : BaseView = None ,
951951 tts : bool = False ,
952952 ephemeral : bool = False ,
953953 allowed_mentions : AllowedMentions = None ,
@@ -972,7 +972,7 @@ async def send_message(
972972 ``embeds`` parameter.
973973 tts: :class:`bool`
974974 Indicates if the message should be sent using text-to-speech.
975- view: :class:`discord.ui.View `
975+ view: :class:`discord.ui.BaseView `
976976 The view to send with the message.
977977 ephemeral: :class:`bool`
978978 Indicates if the message should only be visible to the user who started the interaction.
@@ -1128,7 +1128,7 @@ async def edit_message(
11281128 file : File = MISSING ,
11291129 files : list [File ] = MISSING ,
11301130 attachments : list [Attachment ] = MISSING ,
1131- view : View | None = MISSING ,
1131+ view : BaseView | None = MISSING ,
11321132 delete_after : float | None = None ,
11331133 suppress : bool | None = MISSING ,
11341134 allowed_mentions : AllowedMentions | None = None ,
@@ -1155,7 +1155,7 @@ async def edit_message(
11551155 attachments: List[:class:`Attachment`]
11561156 A list of attachments to keep in the message. If ``[]`` is passed
11571157 then all attachments are removed.
1158- view: Optional[:class:`~discord.ui.View `]
1158+ view: Optional[:class:`~discord.ui.BaseView `]
11591159 The updated view to update this message with. If ``None`` is passed then
11601160 the view is removed.
11611161 delete_after: Optional[:class:`float`]
@@ -1486,7 +1486,7 @@ async def edit(
14861486 file : File = MISSING ,
14871487 files : list [File ] = MISSING ,
14881488 attachments : list [Attachment ] = MISSING ,
1489- view : View | None = MISSING ,
1489+ view : BaseView | None = MISSING ,
14901490 allowed_mentions : AllowedMentions | None = None ,
14911491 delete_after : float | None = None ,
14921492 suppress : bool | None = MISSING ,
@@ -1515,7 +1515,7 @@ async def edit(
15151515 allowed_mentions: :class:`AllowedMentions`
15161516 Controls the mentions being processed in this message.
15171517 See :meth:`.abc.Messageable.send` for more information.
1518- view: Optional[:class:`~discord.ui.View `]
1518+ view: Optional[:class:`~discord.ui.BaseView `]
15191519 The updated view to update this message with. If ``None`` is passed then
15201520 the view is removed.
15211521 delete_after: Optional[:class:`float`]
0 commit comments