Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions streamerbot/3.api/1.sub-actions/twitch/channel/create-clip.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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.
::
22 changes: 11 additions & 11 deletions streamerbot/3.api/3.csharp/3.methods/twitch/clips/create-clip.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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.
::