Hey, developers!
On Monday, June 20th, we’re making a breaking change to our chat protocol around re-subscription notifications. We’re going to change how IRC receives re-subscription notifications and allow subscribers to send custom notes with their re-subscription. Here are the technical details:
When sharing a re-subscription, twitchnotify no longer sends a PRIVMSG
to IRC. Instead, you’ll receive a USERNOTICE
with all of the existing tags along with a few new tags.
NOTE: All other PRIVMSG
commands from twitchnotify are unchanged. This only applies to resubscription messages. New subscriptions will not send a USERNOTICE
.
New tags
- msg-id
- system-msg
- msg-param-months
- login
Examples
With user message, to streaming channel
@badges=staff/1,broadcaster/1,turbo/1;color=#008000;display-name=TWITCH_UserName;emotes=;mod=0;msg-id=resub;msg-param-months=6;room-id=1337;subscriber=1;system-msg=TWITCH_UserName\shas\ssubscribed\sfor\s6\smonths!;login=twitch_username;turbo=1;user-id=1337;user-type=staff :tmi.twitch.tv USERNOTICE #channel :Great stream – keep it up!
Without user message, to streaming channel
@badges=staff/1,broadcaster/1,turbo/1;color=#008000;display-name=TWITCH_UserName;emotes=;mod=0;msg-id=resub;msg-param-months=6;room-id=1337;subscriber=1;system-msg=TWITCH_UserName\shas\ssubscribed\sfor\s6\smonths!;login=twitch_username;turbo=1;user-id=1337;user-type=staff :tmi.twitch.tv USERNOTICE #channel
FAQ
Will we receive a USERNOTICE for new subscribers?
No. The USERNOTICE
only applies to re-subscriptions.
Is the login tag the username or display name?
The login
tag is the lowercase username. The display name is sent in the display-name
tag.
What is the value of the room-id?
The room-id
is always the channel where the user re-subscribed.
What happened to the third scenario that used to be here?
We removed it. We do nothing special in the hosting scenario.
Let me know if you have any questions! Sorry for the short notice on this.