You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- To remove the ``slow_mode_wait_time``, ``follower_mode_duration``, or ``non_moderator_chat_delay_duration`` field's value, set the corresponding ``slow_mode``, ``follower_mode``, or ``non_moderator_chat_delay`` field to False (and don't include the slow_mode_wait_time, follower_mode_duration, or non_moderator_chat_delay_duration field).
974
974
975
975
.. note::
976
-
Requires a user access token that includes the `moderator:manage:chat_settings` scope.
976
+
Requires a user access token that includes the ``moderator:manage:chat_settings`` scope.
If [`fetch_clips`][twitchio.user.PartialUser.fetch_clips] returns the clip, the clip was successfully created. If after 15 seconds [`fetch_clips`][twitchio.user.PartialUser.fetch_clips] hasn't returned the clip, assume it failed.
1259
1259
1260
1260
.. note::
1261
-
Requires a user access token that includes the `clips:edit` scope.
1261
+
Requires a user access token that includes the ``clips:edit`` scope.
1262
1262
1263
1263
Parameters
1264
1264
----------
@@ -1267,7 +1267,7 @@ async def create_clip(
1267
1267
If False (default), Twitch captures the clip at the moment the viewer requests it (this is the same clip experience as the Twitch UX).
1268
1268
If True, Twitch adds a delay before capturing the clip (this basically shifts the capture window to the right slightly).
1269
1269
token_for: str | PartialUser
1270
-
User access token that includes the `clips:edit` scope.
1270
+
User access token that includes the ``clips:edit`` scope.
AutomodSettings object containing the new settings for the broadcaster's channel.
1850
1850
You can fetch this using :meth:`~fetch_automod_settings`
1851
1851
token_for: str | PartialUser
1852
-
User access token that includes the `moderator:manage:automod_settings` scope.
1852
+
User access token that includes the ``moderator:manage:automod_settings`` scope.
1853
1853
1854
1854
Returns
1855
1855
-------
@@ -1933,12 +1933,12 @@ async def ban_user(
1933
1933
An optional ID of or the :class:`~twitchio.PartialUser` object of the moderator issuing this action.
1934
1934
You must have a token stored with the ``moderator:manage:banned_users`` scope for this moderator.
1935
1935
1936
-
If ``None``, the ID of this :class:`~twitchio.PartialUser` will be used.
1936
+
If `None`, the ID of this :class:`~twitchio.PartialUser` will be used.
1937
1937
user: str | PartialUser
1938
1938
The ID of, or the :class:`~twitchio.PartialUser` of the user to ban.
1939
1939
reason: str | None
1940
1940
An optional reason this chatter is being banned. If provided the length of the reason must not be more than
1941
-
``500`` characters long. Defaults to ``None``.
1941
+
``500`` characters long. Defaults to `None`.
1942
1942
1943
1943
Raises
1944
1944
------
@@ -1989,12 +1989,12 @@ async def timeout_user(
1989
1989
An optional ID of or the :class:`~twitchio.PartialUser` object of the moderator issuing this action.
1990
1990
You must have a token stored with the ``moderator:manage:banned_users`` scope for this moderator.
1991
1991
1992
-
If ``None``, the ID of this :class:`~twitchio.PartialUser` will be used.
1992
+
If `None`, the ID of this :class:`~twitchio.PartialUser` will be used.
1993
1993
user: str | PartialUser
1994
1994
The ID of, or the :class:`~twitchio.PartialUser` of the user to ban.
1995
1995
reason: str | None
1996
1996
An optional reason this chatter is being banned. If provided the length of the reason must not be more than
1997
-
``500`` characters long. Defaults to ``None``.
1997
+
``500`` characters long. Defaults to `None`.
1998
1998
duration: int
1999
1999
The duration of the timeout in seconds. The minimum duration is ``1`` second and the
2000
2000
maximum is ``1_209_600`` seconds (2 weeks).
@@ -2177,16 +2177,16 @@ def fetch_blocked_terms(
2177
2177
Fetches the broadcaster's list of non-private, blocked words or phrases.
2178
2178
These are the terms that the broadcaster or moderator added manually or that were denied by AutoMod.
2179
2179
2180
-
??? note
2181
-
Requires a user access token that includes the `moderator:read:blocked_terms` or `moderator:manage:blocked_terms` scope.
2180
+
.. note::
2181
+
Requires a user access token that includes the ``moderator:read:blocked_terms` or ``moderator:manage:blocked_terms`` scope.
2182
2182
2183
2183
Parameters
2184
2184
----------
2185
2185
moderator: str | int | PartialUser
2186
2186
The ID, or PartialUser, of the broadcaster or a user that has permission to moderate the broadcaster's chat room.
2187
2187
This ID must match the user ID in the user access token.
2188
2188
token_for: str | PartialUser
2189
-
User access token that includes the `moderator:read:blocked_terms` or `moderator:manage:blocked_terms` scope.
2189
+
User access token that includes the ``moderator:read:blocked_terms`` or ``moderator:manage:blocked_terms`` scope.
2190
2190
first: int
2191
2191
The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100 items per page. The default is 20.
2192
2192
max_results: int | None
@@ -2389,7 +2389,7 @@ def fetch_moderators(
2389
2389
A list of user IDs used to filter the results. To specify more than one ID, include this parameter for each moderator you want to get.
2390
2390
The returned list includes only the users from the list who are moderators in the broadcaster's channel. You may specify a maximum of 100 IDs.
2391
2391
token_for: str | PartialUser
2392
-
User access token that includes the `moderation:read` scope.
2392
+
User access token that includes the ``moderation:read`` scope.
2393
2393
If your app also adds and removes moderators, you can use the ``channel:manage:moderators`` scope instead.
2394
2394
The user ID in the access token must match the broadcaster's ID.
token stored with the ``moderator:manage:banned_users`` scope for this moderator.
3781
3784
reason: str | None
3782
3785
An optional reason this chatter is being banned. If provided the length of the reason must not be more than
3783
-
``500`` characters long. Defaults to ``None``.
3786
+
``500`` characters long. Defaults to `None`.
3784
3787
3785
3788
Raises
3786
3789
------
@@ -3811,6 +3814,9 @@ async def timeout(
3811
3814
3812
3815
Timeout the chatter from the associated channel/broadcaster.
3813
3816
3817
+
.. important::
3818
+
This is different to the :meth:`~twitchio.user.PartialUser.timeout_user` as it will timeout this chatter directly in the associated channel in the object.
3819
+
3814
3820
.. note::
3815
3821
3816
3822
You must have a user access token that includes the ``moderator:manage:banned_users`` scope to do this.
@@ -3830,7 +3836,7 @@ async def timeout(
3830
3836
The default is ``600`` which is ten minutes.
3831
3837
reason: str | None
3832
3838
An optional reason this chatter is being banned. If provided the length of the reason must not be more than
3833
-
``500`` characters long. Defaults to ``None``.
3839
+
``500`` characters long. Defaults to `None`.
3834
3840
"""
3835
3841
ifreasonandlen(reason) >500:
3836
3842
raiseValueError("The provided reason exceeds the allowed length of 500 characters.")
Send this chatter a warning, preventing them from chat interaction until the warning is acknowledged.
3847
3853
New warnings can be issued to a chatter / user when they already have a warning in the channel (new warning will replace old warning).
3848
3854
3855
+
.. important::
3856
+
This is different to the :meth:`~twitchio.user.PartialUser.warn_user` as it will warn this chatter directly for the associated channel in the object.
3857
+
3849
3858
.. note::
3850
3859
Requires a user access token that includes the ``moderator:manage:warnings`` scope.
3851
3860
moderator id must match the user id in the user access token.
@@ -3880,6 +3889,12 @@ async def block(
3880
3889
3881
3890
The user ID in the OAuth token identifies the broadcaster who is blocking the user.
3882
3891
3892
+
.. important::
3893
+
This is different to the :meth:`~twitchio.user.PartialUser.block_user` as it will block this chatter directly from the associated channel in the object.
3894
+
3895
+
.. note::
3896
+
Requires a user access token that includes the ``user:manage:blocked_users`` scope.
0 commit comments