Skip to content

Commit 9cfaf51

Browse files
committed
Fix event_command_error docs.
1 parent 3df1444 commit 9cfaf51

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/references/events/events.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,10 @@ Commands Events
390390
Below is a small example of overriding the default implementation in a :class:`~twitchio.ext.commands.Component`. This,
391391
when used in an extension allows your error handler to be hot-reloaded without losing access to a proper exception handler.
392392

393-
Example
394-
-------
393+
:param twitchio.ext.commands.CommandErrorPayload payload: The error payload containing context and the exception raised.
394+
395+
396+
**Example**
395397

396398
.. code:: python3
397399
@@ -443,8 +445,6 @@ Commands Events
443445
async def setup(bot: commands.Bot) -> None:
444446
await bot.add_component(ErrorComponent(bot))
445447
446-
:param twitchio.ext.commands.CommandErrorPayload payload: The error payload containing context and the exception raised.
447-
448448
449449
Automod
450450
#######

0 commit comments

Comments
 (0)