feat: add duration and title options to clip command (#6669)

Reviewed-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
iProdigy
2025-12-28 05:26:48 -06:00
committed by GitHub
parent e084ae6ef1
commit a9ab584cbb
9 changed files with 60 additions and 10 deletions
+3 -2
View File
@@ -1956,7 +1956,8 @@ void TwitchChannel::setCheerEmoteSets(
*this->cheerEmoteSets_.access() = std::move(emoteSets);
}
void TwitchChannel::createClip()
void TwitchChannel::createClip(const QString &title,
const std::optional<int> duration)
{
if (!this->isLive())
{
@@ -1980,7 +1981,7 @@ void TwitchChannel::createClip()
this->isClipCreationInProgress = true;
getHelix()->createClip(
this->roomId(),
this->roomId(), title, duration,
// successCallback
[this](const HelixClip &clip) {
MessageBuilder builder;