Retrieve moderation actions such as banned users with a channel moderator's OAuth token
As far as I understand, for now, it is possible to ban/unban an user with a channel moderator's OAuth token, but it is still impossible to retrieve the channel's banned users list. It must be done with the broadcaster's OAuth token. Even though moderators have access to this information with the /user chat command.
If I want to check if an user is banned as a moderator via the API, here's what I currently need to do:
- perform a ban/unban request on the user
- check if it returned HTTP 200 or HTTP 400 (respectively meaning successful or user already banned/unbanned)
- perform the opposite action in case of HTTP 200 to revert what I've just done (it will unnecessarily clutter the ban logs for this user and trigger a PubSub)
Sounds like complete nonsense to me.
Here's a list of all the cases that IMO are concerned by this issue:
- Get Banned Users
- Get Moderators
- Get VIPs
- Get Polls
- Get Predictions
- Get Broadcaster Subscriptions
Don't hesitate to check if I missed anything.
Basically, I think it would be nice to be able to emulate the /user windows seen as a channel moderator with the API. I don't see why moderators should have access to this kind of information through the chat interface but not through the API, especially when they can perform the action but can't see the logs regarding this same action.
Again, correct me if I missed something here.