Skip to content

Commit a6d8d8f

Browse files
committed
Add new CCLs
1 parent bad0a5a commit a6d8d8f

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

twitchio/http.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,18 @@ async def patch_channel_info(
670670
tags: list[str] | None = None,
671671
branded_content: bool | None = None,
672672
classification_labels: list[
673-
dict[Literal["DrugsIntoxication", "SexualThemes", "ViolentGraphic", "Gambling", "ProfanityVulgarity"], bool]
673+
dict[
674+
Literal[
675+
"DebatedSocialIssuesAndPolitics",
676+
"MatureGame",
677+
"DrugsIntoxication",
678+
"SexualThemes",
679+
"ViolentGraphic",
680+
"Gambling",
681+
"ProfanityVulgarity",
682+
],
683+
bool,
684+
]
674685
]
675686
| None = None,
676687
) -> None:

twitchio/user.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,18 @@ async def modify_channel(
438438
delay: int | None = None,
439439
tags: list[str] | None = None,
440440
classification_labels: list[
441-
dict[Literal["DrugsIntoxication", "SexualThemes", "ViolentGraphic", "Gambling", "ProfanityVulgarity"], bool]
441+
dict[
442+
Literal[
443+
"DebatedSocialIssuesAndPolitics",
444+
"MatureGame",
445+
"DrugsIntoxication",
446+
"SexualThemes",
447+
"ViolentGraphic",
448+
"Gambling",
449+
"ProfanityVulgarity",
450+
],
451+
bool,
452+
]
442453
]
443454
| None = None,
444455
branded: bool | None = None,
@@ -487,7 +498,7 @@ async def modify_channel(
487498
You may set a maximum of 10 tags, each limited to 25 characters. They can not be empty strings, contain spaces or special characters.
488499
489500
See `here for more information <https://help.twitch.tv/s/article/guide-to-tags>`_
490-
classification_labels: list[dict[Literal["DrugsIntoxication", "SexualThemes", "ViolentGraphic", "Gambling", "ProfanityVulgarity"], bool]] | None
501+
classification_labels: list[dict[Literal["DebatedSocialIssuesAndPolitics", "MatureGame", "DrugsIntoxication", "SexualThemes", "ViolentGraphic", "Gambling", "ProfanityVulgarity"], bool]] | None
491502
List of labels that should be set as the Channel's CCLs.
492503
branded: bool | None
493504
Boolean flag indicating if the channel has branded content.

0 commit comments

Comments
 (0)