Extend Moderation API to retrieve and set mod comments of a defined user
An update on Jan 31, 2019 gave channel moderators the ability to add comments to users within chat. There is currently no way to use the API to be able to set or retrieve comments for users in chat.
This should be available to the broadcaster and all moderators within a channel.
To add a mod comment to a user, the endpoint could take the following data as inputs:
- User: {user's name}
- Moderator: {mod's name}
- Broadcaster: {broadcaster's name}
- Comment: {comment to be applied}
On success, this would return the following:
- Success: {true}
- date: {date}
- User: {user's name}
- Moderator: {mod's name}
- Broadcaster: {broadcaster's name}
- Comment: {comment applied}
To retrieve mod comments of a user, the endpoint could take the following data as inputs:
- User: {user's name}
- Moderator: {mod's name (optional)}
- Broadcaster: {broadcaster's name}
- date: {date of comment (optional)}
- date range upper: {upper limit of date range (optional)}
- date range lower: {lower limit of date range (optional)}
On success, this would return the following for each comment:
- Success: {true}
- date: {date}
- User: {user's name}
- Moderator: {mod's name}
- Broadcaster: {broadcaster's name}
- Comment: {comment applied}
-
Freso commented
Oh, and with the introduction of shared mod comments, it would be great if this was also able to read shared comments from other channels a broadcaster is sharing with as well as toggle whether added comments should be shared or not.
-
Freso commented
I’ve been wanting this for so long. I wish they would stop adding new features with no API access to it, esp. when they deny us API access for 2+ years following its introduction. :(
-
PlokGamingTwitch commented
Would love to have this feature!