Chat Warnings are now available via the API and EventSub in an open beta

Earlier this month, Twitch launched Chat Warnings to send anonymous warnings to chatters who are violating the channel’s community standards. These messages must be acknowledged before a chatter can continue to send messages. Recognizing the value for third-party moderation tools, the team also wanted to provide this functionality via our third-party interfaces as soon as possible. We also appreciate the UserVoice suggestion that validated this conclusion! Therefore, we are excited to launch the open beta for Chat Warnings!

New Twitch API Endpoint

  • Warn Chat User - Warns a user in the specified broadcaster’s chat room, preventing them from interaction with the chat until the warning is acknowledged.

New EventSub Subscription Types

Updated EventSub Subscription Types

Based on feedback, please note that we are documenting both versions of this subscription type. v1 will continue to be available and the functionality of v2 is currently available when setting the requested version to “beta.” We will update this announcement and communicate to beta users when v2 is generally available in order to update the requested version.

  • channel.moderate v2 - A moderator performs a moderation action in a channel, including chat warnings. See note above that the version must be set to “beta” at this time.

How do I get started?

The new endpoint and subscriptions types are publicly available in an open beta. Visit the documentation links above to start implementing this functionality today. If you use this functionality during the open beta, we welcome your feedback in the API section of UserVoice. Once all UserVoice feedback is considered during the open beta, this functionality will become “generally available,” meaning no further updates or changes can be expected unless formally announced here on the forums.

2 Likes

Good thing, but now i have a question in case of… i run in a thing when one of my mods accidentally sent warning to bot user. i left bot on purpose as simple user, so if in translation (my bot makes translation from one language to another) mods can delete message. now. how my bot can automatically acknowledge this warning without me logining in to bot user and manually clicking button?

You can’t. Theres no API for that.

Hi. thanks firstly for your answer.
This i understood by cycling again and again in api, and that is how i managed to write here.
My bot username got known bot status like in 2020ish… but it didn’t helped him, like it does with streamelements. as this function become more popular, it is crutial that bots have possibility to be protected or had a endpoint with broadcaster user token to be able remove this warning from himself.

do i need to ask special status again to have bot protected agains this thing?

Thats basically been removed as a feature, and has no application process I’m aware of at the moment. (after the great purging of them the other week)

Feature Requests can be routed to https://twitch.uservoice.com/forums/310213-developers but I doubt this’ll get thru as it’s trival for bad actors to auto accept warnings (when authing as the chatter) and just carry on spamming /ignoring warnings. (sure then mods ban or take additioanl actions, but need to consider non legimate use cases as well as regular use cases).

Sure warning removal via broadcaster token makes some sense, but then mods could just be informed not to warn that user in the first place (yeah accidents happen). But I could speculate for hours here. So I’ll stop :smiley: