From 53fc66e1a3bfc1ea857c1bbb9cf6c3f780827f5e Mon Sep 17 00:00:00 2001 From: Dschogo <36862419+Dschogo@users.noreply.github.com> Date: Thu, 15 Sep 2022 04:53:15 +0200 Subject: [PATCH 1/7] Update models.py --- twitchio/ext/pubsub/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"] From c5b3810ff0d494913a327005fbf83f8b59963655 Mon Sep 17 00:00:00 2001 From: Dschogo <36862419+Dschogo@users.noreply.github.com> Date: Thu, 15 Sep 2022 04:58:05 +0200 Subject: [PATCH 2/7] Update changelog.rst --- docs/changelog.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index 56ac610f..29ee1e8d 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -11,6 +11,7 @@ Master - Bug fixes - Fix whispers that were not able to be parsed + - Fix settings correct/more specific type of PubSubModerationActionChannelTerms - ext.commands - Bug fixes From 4b26125a64c7c7396c432df3b2893d046e11c704 Mon Sep 17 00:00:00 2001 From: Dschogo <36862419+Dschogo@users.noreply.github.com> Date: Thu, 15 Sep 2022 06:15:06 +0200 Subject: [PATCH 3/7] Update changelog.rst --- docs/changelog.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 29ee1e8d..72fa66d7 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -11,7 +11,7 @@ Master - Bug fixes - Fix whispers that were not able to be parsed - - Fix settings correct/more specific type of PubSubModerationActionChannelTerms + - Fix correct/more specific type of PubSubModerationActionChannelTerms - ext.commands - Bug fixes From 4fd4d78fa321a0050b038a90b92f02550e7c3447 Mon Sep 17 00:00:00 2001 From: Dschogo <36862419+Dschogo@users.noreply.github.com> Date: Thu, 15 Sep 2022 06:29:40 +0200 Subject: [PATCH 4/7] Update changelog.rst --- docs/changelog.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 72fa66d7..8ad63b42 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -11,7 +11,7 @@ Master - Bug fixes - Fix whispers that were not able to be parsed - - Fix correct/more specific type of PubSubModerationActionChannelTerms + - Set correct/more descriptive "type" of PubSubModerationActionChannelTerms (from "channel_terms_action" to "add_blocked_term"/"delete_blocked_term") - ext.commands - Bug fixes From 8525080a036ade472bd612bcac665813b05d4793 Mon Sep 17 00:00:00 2001 From: Dschogo <36862419+Dschogo@users.noreply.github.com> Date: Thu, 15 Sep 2022 12:24:46 +0200 Subject: [PATCH 5/7] Update changelog.rst --- docs/changelog.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 8ad63b42..4dfc33fc 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -11,7 +11,6 @@ Master - Bug fixes - Fix whispers that were not able to be parsed - - Set correct/more descriptive "type" of PubSubModerationActionChannelTerms (from "channel_terms_action" to "add_blocked_term"/"delete_blocked_term") - ext.commands - Bug fixes @@ -27,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 PubSubModerationActionChannelTerms is now more descriptive 2.4.0 ====== From b7a19f7ed3c13cac9d080978c396a6730b5be014 Mon Sep 17 00:00:00 2001 From: Dschogo <36862419+Dschogo@users.noreply.github.com> Date: Thu, 15 Sep 2022 12:29:47 +0200 Subject: [PATCH 6/7] Update changelog.rst --- docs/changelog.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 4dfc33fc..e5488433 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -30,7 +30,7 @@ Master - ext.pubsub - Bug fixes - - "type" of PubSubModerationActionChannelTerms is now more descriptive + - "type" of :class:`~twitchio.ext.pubsub.PubSubModerationActionChannelTerms` is now more descriptive 2.4.0 ====== From f5d5ff941b5957845d4ebd96b709d2f5e1dd40be Mon Sep 17 00:00:00 2001 From: chillymosh <86857777+chillymosh@users.noreply.github.com> Date: Mon, 10 Oct 2022 09:56:24 +0100 Subject: [PATCH 7/7] Update changelog.rst --- docs/changelog.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index e5488433..fd8d1ff0 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -30,7 +30,7 @@ Master - ext.pubsub - Bug fixes - - "type" of :class:`~twitchio.ext.pubsub.PubSubModerationActionChannelTerms` is now more descriptive + - "type" of :class:`~twitchio.ext.pubsub.PubSubModerationActionChannelTerms` now uses the correct type data 2.4.0 ======