diff --git a/docs/changelog.rst b/docs/changelog.rst index 56ac610f..fd8d1ff0 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -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 ====== diff --git a/twitchio/ext/pubsub/models.py b/twitchio/ext/pubsub/models.py index f9326887..f11c6f39 100644 --- a/twitchio/ext/pubsub/models.py +++ b/twitchio/ext/pubsub/models.py @@ -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"]