From 582553059dbcfc3eb68434cbe9962542485d02d7 Mon Sep 17 00:00:00 2001 From: Brofar Date: Wed, 14 Jan 2026 23:48:16 -0700 Subject: [PATCH 1/3] Twitch Clips: Add title and duration parameters --- .../twitch/channel/create-clip.md | 18 +++++++------- .../3.methods/twitch/clips/create-clip.md | 24 +++++++++---------- 2 files changed, 21 insertions(+), 21 deletions(-) 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..7e4f6737 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 @@ -9,8 +18,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 +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 From 33341ee75aeb5fce6ab421de5adace391b6fd93a Mon Sep 17 00:00:00 2001 From: Whipstickgostop <8366326+Whipstickgostop@users.noreply.github.com> Date: Thu, 15 Jan 2026 12:39:29 -0500 Subject: [PATCH 2/3] fix: remove unneeded csharp props --- .../3.api/3.csharp/3.methods/twitch/clips/create-clip.md | 4 ---- 1 file changed, 4 deletions(-) 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 7e4f6737..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 @@ -4,12 +4,8 @@ title: CreateClip 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; From fd38cffa5a3ff45980df64764eaddcba6c1e22dc Mon Sep 17 00:00:00 2001 From: Whipstickgostop <8366326+Whipstickgostop@users.noreply.github.com> Date: Thu, 15 Jan 2026 12:40:19 -0500 Subject: [PATCH 3/3] fix: friendly type names for user-facing input dialogs --- streamerbot/3.api/1.sub-actions/twitch/channel/create-clip.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 182cf1c1..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 @@ -3,10 +3,10 @@ title: Create Clip description: Create a Twitch Clip parameters: - name: Clip Title - type: string + type: Text description: If blank, will match the stream title at the time of creation. - name: Duration - type: int + type: Number default: 30 description: Clip duration in seconds (min. 5, max 60). variables: