Skip to content

Commit 1df568c

Browse files
committed
Fix component doc build errors
1 parent a4f1671 commit 1df568c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

twitchio/ext/commands/components.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ def listener(cls, name: str | None = None) -> Any:
313313
--------
314314
315315
.. code:: python3
316+
316317
# By default if no name parameter is passed, the name of the event listened to is the same as the function...
317318
318319
class MyComponent(commands.Component):
@@ -322,6 +323,7 @@ async def event_message(self, payload: twitchio.ChatMessage) -> None:
322323
...
323324
324325
.. code:: python3
326+
325327
# You can listen to two or more of the same event in a single component...
326328
# The name parameter should have the "event_" prefix removed...
327329

0 commit comments

Comments
 (0)