Skip to content

Commit b762a7f

Browse files
committed
fix eventsub ext docs
1 parent 3b621f2 commit b762a7f

File tree

2 files changed

+55
-53
lines changed

2 files changed

+55
-53
lines changed

docs/changelog.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
2.2.0
44
=====
55
- ext.sounds
6-
- Added sounds extension. Check the sounds documentation for more information.
6+
- Added sounds extension. Check the :ref:`sounds-ref` documentation for more information.
77

88
- TwitchIO
99
- Loosen aiohttp requirements to allow 3.8.1
10-
- :class:`Stream` was missing from ``__all__``. It is now available in the twitchio namespace.
10+
- :class:`twitchio.Stream` was missing from ``__all__``. It is now available in the twitchio namespace.
1111
- Added ``.status``, ``.reason`` and ``.extra`` to :class:`HTTPException`
12-
- Fix Message._timestamp value when tag is not provided by twitch
13-
- Fix :func:`Client.wait_for_ready`
14-
- Remove loop= parameter inside :func:`Client.wait_for` for 3.10 compatibility
15-
- Add `is_broadcaster` check to `PartialChatter` class. This is accessible as `Context.author.is_broadcaster`
16-
- :func:`User.fetch_follow` will now return ``None`` if the FollowEvent does not exists
12+
- Fix ``Message._timestamp`` value when tag is not provided by twitch
13+
- Fix :func:`twitchio.Client.wait_for_ready`
14+
- Remove loop= parameter inside :func:`twitchio.Client.wait_for` for 3.10 compatibility
15+
- Add ``is_broadcaster`` check to :class:`twitchio.PartialChatter`. This is accessible as ``Context.author.is_broadcaster``
16+
- :func:`twitchio.User.fetch_follow` will now return ``None`` if the FollowEvent does not exists
1717
- TwitchIO will now correctly handle error raised when only the prefix is typed in chat
1818
- Fix paginate logic in :func:`TwitchHTTP.request`
1919

@@ -25,17 +25,17 @@
2525

2626
- ext.eventsub
2727
- Add support for the following subscription types
28-
- :class:`ext.eventsub.PollBeginProgressData`
28+
- :class:`twitchio.ext.eventsub.PollBeginProgressData`
2929
- ``channel.poll.begin``:
3030
- ``channel.poll.progress``
31-
- :class:`ext.eventsub.PollEndData`
31+
- :class:`twitchio.ext.eventsub.PollEndData`
3232
- ``channel.poll.end``
33-
- :class:`ext.eventsub.PredictionBeginProgressData`
33+
- :class:`twitchio.ext.eventsub.PredictionBeginProgressData`
3434
- ``channel.prediction.begin``
3535
- ``channel.prediction.progress``
36-
- :class:`ext.eventsub.PredictionLockData`
36+
- :class:`twitchio.ext.eventsub.PredictionLockData`
3737
- ``channel.prediction.lock``
38-
- :class:`ext.eventsub.PredictionEndData`
38+
- :class:`twitchio.ext.eventsub.PredictionEndData`
3939
- ``channel.prediction.end``
4040

4141
2.1.5

twitchio/ext/eventsub/models.py

Lines changed: 43 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -185,18 +185,18 @@ class ChannelBanData(EventData):
185185
186186
Attributes
187187
-----------
188-
user: :class:`PartialUser`
188+
user: :class:`twitchio.PartialUser`
189189
The user that was banned
190-
broadcaster: :class:`PartialUser`
190+
broadcaster: :class:`twitchio.PartialUser`
191191
The broadcaster who's channel the ban occurred in
192-
moderator: :class:`PartialUser`
192+
moderator: :class:`twitchio.PartialUser`
193193
The moderator responsible for the ban
194194
reason: :class:`str`
195195
The reason for the ban
196196
ends_at: Optional[:class:`datetime.datetime`]
197197
When the ban ends at. Could be ``None``
198198
permanant: :class:`bool`
199-
A typo of ``permanent``. Kept for backwards compatibility
199+
A typo of ``permanent`` Kept for backwards compatibility
200200
permanent: :class:`bool`
201201
Whether the ban is permanent
202202
"""
@@ -219,9 +219,9 @@ class ChannelSubscribeData(EventData):
219219
220220
Attributes
221221
-----------
222-
user: :class:`PartialUser`
222+
user: :class:`twitchio.PartialUser`
223223
The user who subscribed
224-
broadcaster: :class:`PartialUser`
224+
broadcaster: :class:`twitchio.PartialUser`
225225
The channel that was subscribed to
226226
tier: :class:`int`
227227
The tier of the subscription
@@ -246,9 +246,9 @@ class ChannelCheerData(EventData):
246246
----------
247247
is_anonymous: :class:`bool`
248248
Whether the cheer was anonymous
249-
user: Optional[:class:`PartialUser`]
249+
user: Optional[:class:`twitchio.PartialUser`]
250250
The user that cheered. Will be ``None`` if ``is_anonymous`` is ``True``
251-
broadcaster: :class:`PartialUser`
251+
broadcaster: :class:`twitchio.PartialUser`
252252
The channel the cheer happened on
253253
message: :class:`str`
254254
The message sent along with the bits
@@ -272,7 +272,7 @@ class ChannelUpdateData(EventData):
272272
273273
Attributes
274274
-----------
275-
broadcaster: :class:`PartialUser`
275+
broadcaster: :class:`twitchio.PartialUser`
276276
The channel that was updated
277277
title: :class:`str`
278278
The title of the stream
@@ -303,11 +303,11 @@ class ChannelUnbanData(EventData):
303303
304304
Attributes
305305
-----------
306-
user: :class:`PartialUser`
306+
user: :class:`twitchio.PartialUser`
307307
The user that was unbanned
308-
broadcaster: :class:`PartialUser`
308+
broadcaster: :class:`twitchio.PartialUser`
309309
The channel the unban occurred in
310-
moderator: :class`PartialUser`
310+
moderator: :class`twitchio.PartialUser`
311311
The moderator that preformed the unban
312312
"""
313313

@@ -325,9 +325,9 @@ class ChannelFollowData(EventData):
325325
326326
Attributes
327327
-----------
328-
user: :class:`PartialUser`
328+
user: :class:`twitchio.PartialUser`
329329
The user that followed
330-
broadcaster: :class:`PartialUser`
330+
broadcaster: :class:`twitchio.PartialUser`
331331
The channel that was followed
332332
followed_at: :class:`datetime.datetime`
333333
When the follow occurred
@@ -347,9 +347,9 @@ class ChannelRaidData(EventData):
347347
348348
Attributes
349349
-----------
350-
raider: :class:`PartialUser`
350+
raider: :class:`twitchio.PartialUser`
351351
The person initiating the raid
352-
reciever: :class:`PartialUser`
352+
reciever: :class:`twitchio.PartialUser`
353353
The person recieving the raid
354354
viewer_count: :class:`int`
355355
The amount of people raiding
@@ -369,9 +369,9 @@ class ChannelModeratorAddRemoveData(EventData):
369369
370370
Attributes
371371
-----------
372-
user: :class:`PartialUser`
372+
user: :class:`twitchio.PartialUser`
373373
The user being added or removed from the moderator status
374-
broadcaster: :class:`PartialUser`
374+
broadcaster: :class:`twitchio.PartialUser`
375375
The channel that is having a moderator added/removed
376376
"""
377377

@@ -390,9 +390,9 @@ class CustomRewardAddUpdateRemoveData(EventData):
390390
-----------
391391
id: :class:`str`
392392
The ID of the custom reward
393-
broadcaster: :class:`PartialUser`
393+
broadcaster: :class:`twitchio.PartialUser`
394394
The channel the custom reward was modified in
395-
reward: :class:`CustomReward`
395+
reward: :class:`twitchio.CustomReward`
396396
The reward object
397397
"""
398398

@@ -410,9 +410,9 @@ class CustomRewardRedemptionAddUpdateData(EventData):
410410
411411
Attributes
412412
-----------
413-
broadcaster: :class:PartialUser`
413+
broadcaster: :class:`twitchio.PartialUser`
414414
The channel the redemption occurred in
415-
user: :class:`PartialUser`
415+
user: :class:`twitchio.PartialUser`
416416
The user that redeemed the reward
417417
id: :class:`str`
418418
The ID of the redemption
@@ -422,7 +422,7 @@ class CustomRewardRedemptionAddUpdateData(EventData):
422422
One of "unknown", "unfulfilled", "fulfilled", or "cancelled"
423423
redeemed_at: :class:`datetime.datetime`
424424
When the reward was redeemed at
425-
reward: :class:`CustomReward`
425+
reward: :class:`twitchio.CustomReward`
426426
The reward object
427427
"""
428428

@@ -444,7 +444,7 @@ class HypeTrainContributor:
444444
445445
Attributes
446446
-----------
447-
user: :class:`PartialUser`
447+
user: :class:`twitchio.PartialUser`
448448
The user
449449
type: :class:`str`
450450
One of "bits" or "subscription". The way they contributed to the hype train
@@ -463,9 +463,11 @@ def __init__(self, client: EventSubClient, data: dict):
463463
class HypeTrainBeginProgressData(EventData):
464464
"""
465465
A Hype Train Begin/Progress event
466+
466467
Attributes
467468
-----------
468-
broadcaster: :class:`PartialUser`
469+
470+
broadcaster: :class:`twitchio.PartialUser`
469471
The channel the Hype Train occurred in
470472
total_points: :class:`int`
471473
The total amounts of points in the Hype Train
@@ -511,7 +513,7 @@ class HypeTrainEndData(EventData):
511513
512514
Attributes
513515
-----------
514-
broadcaster: :class:`PartialUser`
516+
broadcaster: :class:`twitchio.PartialUser`
515517
The channel the Hype Train occurred in
516518
total_points: :class:`int`
517519
The total amounts of points in the Hype Train
@@ -629,17 +631,17 @@ class PollBeginProgressData(EventData):
629631
630632
Attributes
631633
-----------
632-
broadcaster: :class:`PartialUser`
634+
broadcaster: :class:`twitchio.PartialUser`
633635
The channel the poll occured in
634636
poll_id: :class:`str`
635637
The ID of the poll
636638
title: :class:`str`
637639
The title of the poll
638640
choices: List[:class:`PollChoice`]
639641
The choices in the poll
640-
bits_voting: :class:BitsVoting
642+
bits_voting: :class:`BitsVoting`
641643
Information on voting on the poll with Bits
642-
channel_points_voting: :class:ChannelPointsVoting
644+
channel_points_voting: :class:`ChannelPointsVoting`
643645
Information on voting on the poll with Channel Points
644646
started_at: :class:`datetime.datetime`
645647
When the poll started
@@ -676,17 +678,17 @@ class PollEndData(EventData):
676678
677679
Attributes
678680
-----------
679-
broadcaster: :class:`PartialUser`
681+
broadcaster: :class:`twitchio.PartialUser`
680682
The channel the poll occured in
681683
poll_id: :class:`str`
682684
The ID of the poll
683685
title: :class:`str`
684686
The title of the poll
685687
choices: List[:class:`PollChoice`]
686688
The choices in the poll
687-
bits_voting: :class:BitsVoting
689+
bits_voting: :class:`BitsVoting`
688690
Information on voting on the poll with Bits
689-
channel_points_voting: :class:ChannelPointsVoting
691+
channel_points_voting: :class:`ChannelPointsVoting`
690692
Information on voting on the poll with Channel Points
691693
status: :class:`PollStatus`
692694
How the poll ended
@@ -726,7 +728,7 @@ class Predictor:
726728
727729
Attributes
728730
-----------
729-
user: :class:`PartialUser`
731+
user: :class:`twitchio.PartialUser`
730732
The user who predicted an outcome
731733
channel_points_used: :class:`int`
732734
How many Channel Points the user used to predict this outcome
@@ -756,7 +758,7 @@ class PredictionOutcome:
756758
channel_points: :class:`int`
757759
The amount of Channel Points that have been bet for this outcome
758760
color: :class:`str`
759-
The color of the outcome. Can be `blue` or `pink`.
761+
The color of the outcome. Can be `blue` or `pink`
760762
users: :class:`int`
761763
The number of users who predicted the outcome
762764
top_predictors: List[:class:`Predictor`]
@@ -801,7 +803,7 @@ class PredictionBeginProgressData(EventData):
801803
802804
Attributes
803805
-----------
804-
broadcaster: :class:`PartialUser`
806+
broadcaster: :class:`twitchio.PartialUser`
805807
The channel the prediction occured in
806808
prediction_id: :class:`str`
807809
The ID of the prediction
@@ -832,7 +834,7 @@ class PredictionLockData(EventData):
832834
833835
Attributes
834836
-----------
835-
broadcaster: :class:`PartialUser`
837+
broadcaster: :class:`twitchio.PartialUser`
836838
The channel the prediction occured in
837839
prediction_id: :class:`str`
838840
The ID of the prediction
@@ -863,7 +865,7 @@ class PredictionEndData(EventData):
863865
864866
Attributes
865867
-----------
866-
broadcaster: :class:`PartialUser`
868+
broadcaster: :class:`twitchio.PartialUser`
867869
The channel the prediction occured in
868870
prediction_id: :class:`str`
869871
The ID of the prediction
@@ -909,7 +911,7 @@ class StreamOnlineData(EventData):
909911
910912
Attributes
911913
-----------
912-
broadcaster: :class:`PartialUser`
914+
broadcaster: :class:`twitchio.PartialUser`
913915
The channel that went live
914916
id: :class:`str`
915917
Some sort of ID for the stream
@@ -933,7 +935,7 @@ class StreamOfflineData(EventData):
933935
934936
Attributes
935937
-----------
936-
broadcaster: :class:`PartialUser`
938+
broadcaster: :class:`twitchio.PartialUser`
937939
The channel that stopped streaming
938940
"""
939941

@@ -949,7 +951,7 @@ class UserAuthorizationRevokedData(EventData):
949951
950952
Attributes
951953
-----------
952-
user: :class:`PartialUser`
954+
user: :class:`twitchio.PartialUser`
953955
The user that has revoked authorization for your app
954956
client_id: :class:`str`
955957
The client id of the app that had its authorization revoked
@@ -968,7 +970,7 @@ class UserUpdateData(EventData):
968970
969971
Attributes
970972
-----------
971-
user: :class:`PartialUser`
973+
user: :class:`twitchio.PartialUser`
972974
The user that was updated
973975
email: Optional[:class:`str`]
974976
The users email, if you have permission to read this information

0 commit comments

Comments
 (0)