EventSub for added/removed moderator status, but for self
EventSub exists for channels adding/removing moderator status to a user. I'd like the other way around. I'd like to receive an EventSub notification if I have been added/removed as a moderator.
Why:
In order to receive a notification whether my bot has been added/removed as a moderator in a channel, I have to subscribe to every streamer I support on channel.moderator.(add|remove), with the condition of broadcaster_user_id = streamer ID. If I could set a condition of user_id = my bot ID, I would only need ONE eventsub subscription each for add and remove, instead of 75000+ each. Win-win for both Twitch and me.
-
RealityRipple
commented
This also applies to the VIP status, which doubles everything regarding this issue.
I also suggest allowing these queries without the respective scopes, if and only if the user_id parameter exists and is set to the authenticated user. It would also be helpful to implement the same removal of scope for the /helix/channels/vips query and /helix/moderation/moderators API queries, for the same reason.
Without these changes, any clients that care what their own channel status is will need to be over-scoped, requiring moderation:read and channel:read:vips even if it doesn't care about those scopes. This also can lower user trust, in cases where the functionality of the project is otherwise unrelated to moderating or VIPs.
Making these changes will also bring EventSub closer in line with IRC, which can provide all this data immediately via its USERSTATE message.
-
Freso
commented
This would be useful for a lot of other bots/bot authors as well!