Implement /marker command (#2360)

This command works the same as it does on Twitch web chat - it creates a streamer marker at the current timestamp with an optional description
This commit is contained in:
Paweł
2021-01-30 15:39:01 +01:00
committed by GitHub
parent eda5e2b504
commit 278a00a700
5 changed files with 172 additions and 3 deletions
+11 -3
View File
@@ -84,7 +84,7 @@ URL: https://dev.twitch.tv/docs/api/reference#get-streams
URL: https://dev.twitch.tv/docs/api/reference#create-user-follows
Requires `user:edit:follows` scope
* We implement this in `providers/twitch/api/Helix.cpp followUser`
* We implement this in `providers/twitch/api/Helix.cpp followUser`
Used in:
* `widgets/dialogs/UserInfoPopup.cpp` to follow a user by ticking follow checkbox in usercard
* `controllers/commands/CommandController.cpp` in /follow command
@@ -93,7 +93,7 @@ Requires `user:edit:follows` scope
URL: https://dev.twitch.tv/docs/api/reference#delete-user-follows
Requires `user:edit:follows` scope
* We implement this in `providers/twitch/api/Helix.cpp unfollowUser`
* We implement this in `providers/twitch/api/Helix.cpp unfollowUser`
Used in:
* `widgets/dialogs/UserInfoPopup.cpp` to unfollow a user by unticking follow checkbox in usercard
* `controllers/commands/CommandController.cpp` in /unfollow command
@@ -102,7 +102,7 @@ Requires `user:edit:follows` scope
URL: https://dev.twitch.tv/docs/api/reference#create-clip
Requires `clips:edit` scope
* We implement this in `providers/twitch/api/Helix.cpp createClip`
* We implement this in `providers/twitch/api/Helix.cpp createClip`
Used in:
* `TwitchChannel` to create a clip of a live broadcast
@@ -113,6 +113,14 @@ URL: https://dev.twitch.tv/docs/api/reference#get-channel-information
Used in:
* `TwitchChannel` to refresh stream title
### Create Stream Marker
URL: https://dev.twitch.tv/docs/api/reference/#create-stream-marker
Requires `user:edit:broadcast` scope
* We implement this in `providers/twitch/api/Helix.cpp createStreamMarker`
Used in:
* `controllers/commands/CommandController.cpp` in /marker command
## TMI
The TMI api is undocumented.