mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-16 18:59:09 +00:00
Document on_error "special" behavior
This commit is contained in:
parent
00d39704da
commit
8252b1f884
@ -195,6 +195,14 @@ to handle it, which defaults to print a traceback and ignoring the exception.
|
|||||||
:ref:`py:raise`. Exceptions raised by ``on_error`` will not be
|
:ref:`py:raise`. Exceptions raised by ``on_error`` will not be
|
||||||
handled in any way by :class:`Client`.
|
handled in any way by :class:`Client`.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
``on_error`` will only be dispatched to :meth:`Client.event`.
|
||||||
|
|
||||||
|
It will not be received by :meth:`Client.wait_for`, or, if used,
|
||||||
|
:ref:`ext_commands_api_bot` listeners such as
|
||||||
|
:meth:`~ext.commands.Bot.listen` or :meth:`~ext.commands.Cog.listener`.
|
||||||
|
|
||||||
:param event: The name of the event that raised the exception.
|
:param event: The name of the event that raised the exception.
|
||||||
:type event: :class:`str`
|
:type event: :class:`str`
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user