Skip to content
Closed
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 twitchio/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions twitchio/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
):
Expand All @@ -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`
Expand All @@ -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,
)
Expand Down
Loading