From 7f86200a8dd29e511c6feda34e4d74652e4aece3 Mon Sep 17 00:00:00 2001 From: eelcohn Date: Thu, 5 Dec 2024 14:59:38 +0100 Subject: [PATCH 1/2] Add delay and tags parameters to patch_channel() --- twitchio/http.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/twitchio/http.py b/twitchio/http.py index 104d8d6d..09dfbd89 100644 --- a/twitchio/http.py +++ b/twitchio/http.py @@ -768,16 +768,20 @@ async def patch_channel( game_id: str = None, language: str = None, title: str = None, + delay: int = None, + tags: List[str] = None, content_classification_labels: List[Dict[str, Union[str, bool]]] = None, is_branded_content: bool = None, ): - assert any((game_id, language, title, content_classification_labels, is_branded_content)) + assert any((game_id, language, title, delay, tags, content_classification_labels, is_branded_content)) body = { k: v for k, v in { "game_id": game_id, "broadcaster_language": language, "title": title, + "delay": delay, + "tags": tags, "is_branded_content": is_branded_content, }.items() if v is not None From fd713e041f23413cdb2ca90930d914d85e141108 Mon Sep 17 00:00:00 2001 From: eelcohn Date: Thu, 5 Dec 2024 15:03:29 +0100 Subject: [PATCH 2/2] Add delay and tags parameters to modify_stream() --- twitchio/user.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/twitchio/user.py b/twitchio/user.py index cb1f91f8..48acf598 100644 --- a/twitchio/user.py +++ b/twitchio/user.py @@ -958,6 +958,8 @@ async def modify_stream( game_id: int = None, language: str = None, title: str = None, + delay: int = None, + tags: List[str] = None, content_classification_labels: List[Dict[str, Union[str, bool]]] = None, is_branded_content: bool = None, ): @@ -975,6 +977,10 @@ async def modify_stream( Optional language of the channel. A language value must be either the ISO 639-1 two-letter code for a supported stream language or “other”. title: :class:`str` Optional title of the stream. + delay: :class:`int` + Optional the number of seconds you want your broadcast buffered before streaming it live. + tags: List[:class:`str`] + Optional a list of channel-defined tags to apply to the channel. To remove all tags from the channel, set tags to an empty array. content_classification_labels: List[Dict[:class:`str`, Union[:class:`str`, :class:`bool`]]] List of labels that should be set as the Channel's CCLs. is_branded_content: :class:`bool` @@ -997,6 +1003,8 @@ async def modify_stream( game_id=game_id, language=language, title=title, + delay=delay, + tags=tags, content_classification_labels=content_classification_labels, is_branded_content=is_branded_content, )