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..77a0c39a 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: Text + description: If blank, will match the stream title at the time of creation. + - name: Duration + type: Number + 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..6ef9a2b8 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,12 @@ --- name: CreateClip title: CreateClip -description: Create a 30 second Twitch Clip +description: Create a Twitch Clip +parameters: + - name: title + description: If `null`, will match the stream title at the time of creation. + - name: duration + description: Clip duration in seconds (min. 5, max 60). example: | using System; using Twitch.Common.Models.Api; //Needed for ClipData Type @@ -9,8 +14,8 @@ example: | { public bool Execute() { - //Create Clip - ClipData clip = CPH.CreateClip(); + //Create a 25 second clip titled "Example Title" + ClipData clip = CPH.CreateClip("Example Title", 25); //Access created clip data //Get clip creator name @@ -24,12 +29,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