This repository was archived by the owner on Jan 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -46,4 +46,5 @@ class TwitchApiURL(enum.Enum):
4646 hypetrain = "https://api.twitch.tv/helix/hypetrain/events"
4747 scopes = "https://id.twitch.tv/oauth2/validate"
4848 users = "https://api.twitch.tv/helix/users"
49- eventsub_subscriptions = "https://api.twitch.tv/helix/eventsub/subscriptions"
49+ eventsub_subscriptions = "https://api.twitch.tv/helix/eventsub/subscriptions"
50+ videos = "https://api.twitch.tv/helix/videos"
Original file line number Diff line number Diff line change @@ -1133,9 +1133,16 @@ async def get_videos(self):
11331133 return NotImplemented
11341134
11351135 # ------------------------------------------------------------------------------------------------------------------
1136+ @user_has_scope (scope = TwitchApiScopes .ChannelManageVideos )
11361137 @connected_to_twitch
1137- async def delete_videos (self ):
1138- return NotImplemented
1138+ async def delete_videos (self ,id_ :str ):
1139+ return await self ._request (
1140+ callback = requests .delete ,
1141+ url = TwitchApiURL .videos .value ,
1142+ headers = self ._header ,
1143+ query_parameters = {"id" : id_ }
1144+
1145+ )
11391146
11401147
11411148
You can’t perform that action at this time.
0 commit comments