diff --git a/streamerbot/3.api/1.sub-actions/twitch/channel/create-clip.md b/streamerbot/3.api/1.sub-actions/twitch/channel/create-clip.md index 276ea9fd..182cf1c1 100644 --- a/streamerbot/3.api/1.sub-actions/twitch/channel/create-clip.md +++ b/streamerbot/3.api/1.sub-actions/twitch/channel/create-clip.md @@ -1,6 +1,14 @@ --- title: Create Clip -description: Create a 30-second Twitch Clip +description: Create a Twitch Clip +parameters: + - name: Clip Title + type: string + description: If blank, will match the stream title at the time of creation. + - name: Duration + type: int + default: 30 + description: Clip duration in seconds (min. 5, max 60). variables: - name: createClipSuccess type: bool @@ -21,11 +29,3 @@ variables: csharpMethods: - CreateClip --- - -::warning -**Twitch API restrictions** -- The generated clip will always be 30 seconds in length -- The clip title will match your stream title at the time of creation - - To make your own changes to the clip duration and/or title, you can manually edit the clip later. -:: diff --git a/streamerbot/3.api/3.csharp/3.methods/twitch/clips/create-clip.md b/streamerbot/3.api/3.csharp/3.methods/twitch/clips/create-clip.md index ee714668..d60fb443 100644 --- a/streamerbot/3.api/3.csharp/3.methods/twitch/clips/create-clip.md +++ b/streamerbot/3.api/3.csharp/3.methods/twitch/clips/create-clip.md @@ -1,7 +1,16 @@ --- name: CreateClip title: CreateClip -description: Create a 30 second Twitch Clip +description: Create a Twitch Clip +parameters: + - name: title + type: string + default: null + description: If `null`, will match the stream title at the time of creation. + - name: duration + type: int + default: 30 + description: Clip duration in seconds (min. 5, max 60). example: | using System; using Twitch.Common.Models.Api; //Needed for ClipData Type @@ -10,7 +19,7 @@ example: | public bool Execute() { //Create Clip - ClipData clip = CPH.CreateClip(); + ClipData clip = CPH.CreateClip("Example Title", 25); //Access created clip data //Get clip creator name @@ -24,12 +33,3 @@ example: | } } --- - -::warning -**Twitch API restrictions** - -- The generated clip will always be 30 seconds in length -- The clip title will match your stream title at the time of creation - - To make your own changes to the clip duration and/or title, you can manually edit the clip later. -:: \ No newline at end of file