-
-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate /commercial command to the Helix API #4094
Migrate /commercial command to the Helix API #4094
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just some nitpicks, other than that looks good and works as expected
if you would, please create a github issue for:
- retry_after missing from cooldowned requests
- error for invalid length contains the wrong message
invalid length response:
{
"data": [],
"error": "Bad Request",
"message": "To start a commercial, the broadcaster must be streaming live.",
"status": 400
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
Additionally, I opened a github issue for twitch to fix the issues mentioned: twitchdev/issues#686 |
Pull request checklist:
CHANGELOG.md
was updated, if applicableDescription
Migrated the commercial command to the new helix API. Functionality is timegated so the command uses the IRC functionality as long as possible. I yoinked this PR from pajlada with his permission, approximately 57.8% of this PR's code is his 馃 !
Closes #3964