89
89
from .types .interactions import InteractionMetadata as InteractionMetadataPayload
90
90
from .types .interactions import MessageInteraction as MessageInteractionPayload
91
91
from .ui .modal import Modal
92
- from .ui .view import View
92
+ from .ui .view import BaseView
93
93
94
94
InteractionChannel = Union [
95
95
VoiceChannel ,
@@ -164,7 +164,7 @@ class Interaction:
164
164
The command that this interaction belongs to.
165
165
166
166
.. versionadded:: 2.7
167
- view: Optional[:class:`View `]
167
+ view: Optional[:class:`BaseView `]
168
168
The view that this interaction belongs to.
169
169
170
170
.. versionadded:: 2.7
@@ -257,7 +257,7 @@ def _from_data(self, data: InteractionPayload):
257
257
)
258
258
259
259
self .command : ApplicationCommand | None = None
260
- self .view : View | None = None
260
+ self .view : BaseView | None = None
261
261
self .modal : Modal | None = None
262
262
self .attachment_size_limit : int = data .get ("attachment_size_limit" )
263
263
@@ -522,7 +522,7 @@ async def edit_original_response(
522
522
file : File = MISSING ,
523
523
files : list [File ] = MISSING ,
524
524
attachments : list [Attachment ] = MISSING ,
525
- view : View | None = MISSING ,
525
+ view : BaseView | None = MISSING ,
526
526
allowed_mentions : AllowedMentions | None = None ,
527
527
delete_after : float | None = None ,
528
528
suppress : bool = False ,
@@ -557,7 +557,7 @@ async def edit_original_response(
557
557
allowed_mentions: :class:`AllowedMentions`
558
558
Controls the mentions being processed in this message.
559
559
See :meth:`.abc.Messageable.send` for more information.
560
- view: Optional[:class:`~discord.ui.View `]
560
+ view: Optional[:class:`~discord.ui.BaseView `]
561
561
The updated view to update this message with. If ``None`` is passed then
562
562
the view is removed.
563
563
delete_after: Optional[:class:`float`]
@@ -947,7 +947,7 @@ async def send_message(
947
947
* ,
948
948
embed : Embed = None ,
949
949
embeds : list [Embed ] = None ,
950
- view : View = None ,
950
+ view : BaseView = None ,
951
951
tts : bool = False ,
952
952
ephemeral : bool = False ,
953
953
allowed_mentions : AllowedMentions = None ,
@@ -972,7 +972,7 @@ async def send_message(
972
972
``embeds`` parameter.
973
973
tts: :class:`bool`
974
974
Indicates if the message should be sent using text-to-speech.
975
- view: :class:`discord.ui.View `
975
+ view: :class:`discord.ui.BaseView `
976
976
The view to send with the message.
977
977
ephemeral: :class:`bool`
978
978
Indicates if the message should only be visible to the user who started the interaction.
@@ -1128,7 +1128,7 @@ async def edit_message(
1128
1128
file : File = MISSING ,
1129
1129
files : list [File ] = MISSING ,
1130
1130
attachments : list [Attachment ] = MISSING ,
1131
- view : View | None = MISSING ,
1131
+ view : BaseView | None = MISSING ,
1132
1132
delete_after : float | None = None ,
1133
1133
suppress : bool | None = MISSING ,
1134
1134
allowed_mentions : AllowedMentions | None = None ,
@@ -1155,7 +1155,7 @@ async def edit_message(
1155
1155
attachments: List[:class:`Attachment`]
1156
1156
A list of attachments to keep in the message. If ``[]`` is passed
1157
1157
then all attachments are removed.
1158
- view: Optional[:class:`~discord.ui.View `]
1158
+ view: Optional[:class:`~discord.ui.BaseView `]
1159
1159
The updated view to update this message with. If ``None`` is passed then
1160
1160
the view is removed.
1161
1161
delete_after: Optional[:class:`float`]
@@ -1486,7 +1486,7 @@ async def edit(
1486
1486
file : File = MISSING ,
1487
1487
files : list [File ] = MISSING ,
1488
1488
attachments : list [Attachment ] = MISSING ,
1489
- view : View | None = MISSING ,
1489
+ view : BaseView | None = MISSING ,
1490
1490
allowed_mentions : AllowedMentions | None = None ,
1491
1491
delete_after : float | None = None ,
1492
1492
suppress : bool | None = MISSING ,
@@ -1515,7 +1515,7 @@ async def edit(
1515
1515
allowed_mentions: :class:`AllowedMentions`
1516
1516
Controls the mentions being processed in this message.
1517
1517
See :meth:`.abc.Messageable.send` for more information.
1518
- view: Optional[:class:`~discord.ui.View `]
1518
+ view: Optional[:class:`~discord.ui.BaseView `]
1519
1519
The updated view to update this message with. If ``None`` is passed then
1520
1520
the view is removed.
1521
1521
delete_after: Optional[:class:`float`]
0 commit comments