feat: add duration and title options to clip command (#6669)
Reviewed-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user