Skip to content

Commit 20c232c

Browse files
committed
Docs fixes
1 parent 4793f6a commit 20c232c

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

twitchio/eventsub/subscriptions.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2666,20 +2666,20 @@ class ShieldModeBeginSubscription(SubscriptionPayload):
26662666
26672667
This event informs the subscriber that the broadcaster's moderation settings were changed based on the broadcaster's Shield Mode configuration settings.
26682668
2669-
Parameters
2670-
----------
2671-
broadcaster_user_id: str | PartialUser
2672-
The ID, or PartialUser, of the broadcaster to subscribe to.
2673-
moderator_user_id: str | PartialUser
2674-
The ID, or PartialUser, of a moderator for the the broadcaster you are subscribing to. This could also be the broadcaster.
2675-
26762669
.. important::
26772670
Requires the ``moderator:read:shield_mode`` or ``moderator:manage:shield_mode`` scope.
26782671
26792672
- If you use webhooks, the moderator must have granted your app (client ID) one of the above permissions prior to your app subscribing to this subscription type.
26802673
26812674
- If you use WebSockets, the moderator's ID must match the user ID in the user access token.
26822675
2676+
Parameters
2677+
----------
2678+
broadcaster_user_id: str | PartialUser
2679+
The ID, or PartialUser, of the broadcaster to subscribe to.
2680+
moderator_user_id: str | PartialUser
2681+
The ID, or PartialUser, of a moderator for the the broadcaster you are subscribing to. This could also be the broadcaster.
2682+
26832683
Attributes
26842684
----------
26852685
condition: Condition
@@ -2712,20 +2712,20 @@ class ShieldModeEndSubscription(SubscriptionPayload):
27122712
27132713
This event informs the subscriber that the broadcaster's moderation settings were changed back to the broadcaster's previous moderation settings.
27142714
2715-
Parameters
2716-
----------
2717-
broadcaster_user_id: str | PartialUser
2718-
The ID, or PartialUser, of the broadcaster to subscribe to.
2719-
moderator_user_id: str | PartialUser
2720-
The ID, or PartialUser, of a moderator for the the broadcaster you are subscribing to. This could also be the broadcaster.
2721-
27222715
.. important::
27232716
Requires the ``moderator:read:shield_mode`` or ``moderator:manage:shield_mode`` scope.
27242717
27252718
- If you use webhooks, the moderator must have granted your app (client ID) one of the above permissions prior to your app subscribing to this subscription type.
27262719
27272720
- If you use WebSockets, the moderator's ID must match the user ID in the user access token.
27282721
2722+
Parameters
2723+
----------
2724+
broadcaster_user_id: str | PartialUser
2725+
The ID, or PartialUser, of the broadcaster to subscribe to.
2726+
moderator_user_id: str | PartialUser
2727+
The ID, or PartialUser, of a moderator for the the broadcaster you are subscribing to. This could also be the broadcaster.
2728+
27292729
Attributes
27302730
----------
27312731
condition: Condition
@@ -2756,13 +2756,6 @@ def condition(self) -> Condition:
27562756
class ShoutoutCreateSubscription(SubscriptionPayload):
27572757
"""The ``channel.shoutout.create`` subscription type sends a notification when the specified broadcaster sends a shoutout.
27582758
2759-
Parameters
2760-
----------
2761-
broadcaster_user_id: str | PartialUser
2762-
The ID, or PartialUser, of the broadcaster to subscribe to.
2763-
moderator_user_id: str | PartialUser
2764-
The ID, or PartialUser, of a moderator for the the broadcaster you are subscribing to. This could also be the broadcaster.
2765-
27662759
.. important::
27672760
Requires the ``moderator:read:shoutouts`` or ``moderator:manage:shoutouts`` scope.
27682761
@@ -2773,6 +2766,13 @@ class ShoutoutCreateSubscription(SubscriptionPayload):
27732766
.. note::
27742767
This is only sent if Twitch posts the Shoutout to the broadcaster's activity feed.
27752768
2769+
Parameters
2770+
----------
2771+
broadcaster_user_id: str | PartialUser
2772+
The ID, or PartialUser, of the broadcaster to subscribe to.
2773+
moderator_user_id: str | PartialUser
2774+
The ID, or PartialUser, of a moderator for the the broadcaster you are subscribing to. This could also be the broadcaster.
2775+
27762776
Attributes
27772777
----------
27782778
condition: Condition
@@ -2803,13 +2803,6 @@ def condition(self) -> Condition:
28032803
class ShoutoutReceiveSubscription(SubscriptionPayload):
28042804
"""The ``channel.shoutout.receive`` subscription type sends a notification when the specified broadcaster receives a shoutout.
28052805
2806-
Parameters
2807-
----------
2808-
broadcaster_user_id: str | PartialUser
2809-
The ID, or PartialUser, of the broadcaster to subscribe to.
2810-
moderator_user_id: str | PartialUser
2811-
The ID, or PartialUser, of a moderator for the the broadcaster you are subscribing to. This could also be the broadcaster.
2812-
28132806
.. important::
28142807
Requires the ``moderator:read:shoutouts`` or ``moderator:manage:shoutouts`` scope.
28152808
@@ -2820,6 +2813,13 @@ class ShoutoutReceiveSubscription(SubscriptionPayload):
28202813
.. note::
28212814
This is only sent if Twitch posts the Shoutout to the broadcaster's activity feed.
28222815
2816+
Parameters
2817+
----------
2818+
broadcaster_user_id: str | PartialUser
2819+
The ID, or PartialUser, of the broadcaster to subscribe to.
2820+
moderator_user_id: str | PartialUser
2821+
The ID, or PartialUser, of a moderator for the the broadcaster you are subscribing to. This could also be the broadcaster.
2822+
28232823
Attributes
28242824
----------
28252825
condition: Condition

0 commit comments

Comments
 (0)