Skip to content

Commit f463b68

Browse files
committed
Move AutoModStatus example to correct method
1 parent 29b91d5 commit f463b68

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

twitchio/user.py

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -474,19 +474,6 @@ async def modify_channel(
474474
.. note::
475475
Requires user access token that includes the ``channel:manage:broadcast`` scope.
476476
477-
Examples
478-
--------
479-
.. code:: python3
480-
481-
import twitchio
482-
483-
users: list[ChannelInfo] = await client.fetch_channels([21734222])
484-
485-
msg_checks: list[AutomodCheckMessage] = [AutomodCheckMessage(id="1234", text="Some Text"), AutomodCheckMessage(id="12345", text="Some More Text")]
486-
487-
checks: list[AutoModStatus] = await users[0].check_automod_status(messages=msg_checks, token_for="21734222")
488-
489-
490477
Parameters
491478
-----------
492479
game_id: str | None
@@ -1769,6 +1756,18 @@ async def check_automod_status(self, *messages: list[AutomodCheckMessage]) -> li
17691756
.. note::
17701757
Requires a user access token that includes the ``moderation:read`` scope.
17711758
1759+
Examples
1760+
--------
1761+
.. code:: python3
1762+
1763+
my_user_id = "21734222"
1764+
user = await client.fetch_user(id=my_user_id)
1765+
1766+
msg_checks: list[AutomodCheckMessage] = [AutomodCheckMessage(id="1234", text="Some Text"), AutomodCheckMessage(id="12345", text="Some More Text")]
1767+
1768+
checks: list[AutoModStatus] = await user.check_automod_status(messages=msg_checks, token_for=my_user_id)
1769+
1770+
17721771
Parameters
17731772
----------
17741773
\*messages: :class:`twitchio.AutomodCheckMessage`

0 commit comments

Comments
 (0)