Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ Master
- :func:`~twitchio.ext.eventsub.event_eventsub_notification_channel_goal_progress`
- :func:`~twitchio.ext.eventsub.event_eventsub_notification_channel_goal_end`
- Bug fixes
Correct typo in :class:`~twitchio.ext.eventsub.HypeTrainBeginProgressData` attribute :attr:`~twitchio.ext.eventsub.HypeTrainBeginProgressData.expires`
Correct typo in :class:`~twitchio.ext.eventsub.HypeTrainBeginProgressData` attribute :attr:`~twitchio.ext.eventsub.HypeTrainBeginProgressData.expires`

- ext.pubsub
- Bug fixes
- "type" of :class:`~twitchio.ext.pubsub.PubSubModerationActionChannelTerms` now uses the correct type data

2.4.0
======
Expand Down
2 changes: 1 addition & 1 deletion twitchio/ext/pubsub/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ class PubSubModerationActionChannelTerms(PubSubMessage):

def __init__(self, client: Client, topic: str, data: dict):
super().__init__(client, topic, data)
self.type: str = data["message"]["type"]
self.type: str = data["message"]["data"]["type"]
self.channel_id = int(data["message"]["data"]["channel_id"])
self.id: str = data["message"]["data"]["id"]
self.text: str = data["message"]["data"]["text"]
Expand Down