6969if TYPE_CHECKING :
7070 from .abc import GuildChannel , PrivateChannel , Snowflake , SnowflakeTime
7171 from .channel import DMChannel
72- from .interaction import Interaction
72+ from .interactions import Interaction
7373 from .member import Member
7474 from .message import Message
7575 from .poll import Poll
@@ -553,6 +553,15 @@ async def on_view_error(
553553 The default view error handler provided by the client.
554554
555555 This only fires for a view if you did not define its :func:`~discord.ui.View.on_error`.
556+
557+ Parameters
558+ ----------
559+ error: :class:`Exception`
560+ The exception that was raised.
561+ item: :class:`Item`
562+ The item that the user interacted with.
563+ interaction: :class:`Interaction`
564+ The interaction that was received.
556565 """
557566
558567 print (
@@ -570,6 +579,13 @@ async def on_modal_error(self, error: Exception, interaction: Interaction) -> No
570579 The default implementation prints the traceback to stderr.
571580
572581 This only fires for a modal if you did not define its :func:`~discord.ui.Modal.on_error`.
582+
583+ Parameters
584+ ----------
585+ error: :class:`Exception`
586+ The exception that was raised.
587+ interaction: :class:`Interaction`
588+ The interaction that was received.
573589 """
574590
575591 print (f"Ignoring exception in modal { interaction .modal } :" , file = sys .stderr )
@@ -1297,7 +1313,7 @@ def add_listener(self, func: Coro, name: str = MISSING) -> None:
12971313 TypeError
12981314 The ``func`` parameter is not a coroutine function.
12991315 ValueError
1300- The ``name`` (event name) does not start with ' on_'
1316+ The ``name`` (event name) does not start with `` on_``.
13011317
13021318 Example
13031319 -------
@@ -1361,7 +1377,7 @@ def listen(self, name: str = MISSING, once: bool = False) -> Callable[[Coro], Co
13611377 TypeError
13621378 The function being listened to is not a coroutine.
13631379 ValueError
1364- The ``name`` (event name) does not start with ' on_'
1380+ The ``name`` (event name) does not start with `` on_``.
13651381
13661382 Example
13671383 -------
0 commit comments