From 870ba535660fa4155b99fee5012696b081aafab1 Mon Sep 17 00:00:00 2001 From: nicenerd Date: Sun, 26 Mar 2023 16:54:00 +0300 Subject: [PATCH] Added isHighlighted field to IRCTags --- Unity-Twitch-Chat/Assets/Package/Runtime/IRCMessages.cs | 1 + Unity-Twitch-Chat/Assets/Package/Runtime/ParseHelper.cs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Unity-Twitch-Chat/Assets/Package/Runtime/IRCMessages.cs b/Unity-Twitch-Chat/Assets/Package/Runtime/IRCMessages.cs index 57bc667..9f97bd9 100644 --- a/Unity-Twitch-Chat/Assets/Package/Runtime/IRCMessages.cs +++ b/Unity-Twitch-Chat/Assets/Package/Runtime/IRCMessages.cs @@ -29,6 +29,7 @@ public class IRCTags public string displayName = string.Empty; public string channelId = string.Empty; public string userId = string.Empty; + public bool isHighlighted; public ChatterBadge[] badges = new ChatterBadge[0]; public ChatterEmote[] emotes = new ChatterEmote[0]; diff --git a/Unity-Twitch-Chat/Assets/Package/Runtime/ParseHelper.cs b/Unity-Twitch-Chat/Assets/Package/Runtime/ParseHelper.cs index bb27deb..6ff1a60 100644 --- a/Unity-Twitch-Chat/Assets/Package/Runtime/ParseHelper.cs +++ b/Unity-Twitch-Chat/Assets/Package/Runtime/ParseHelper.cs @@ -64,6 +64,10 @@ public static IRCTags ParseTags(string tagString) case "user-id": tags.userId = value; continue; + + case "msg-id": + tags.isHighlighted = value == "highlighted-message"; + continue; } }