How do I get user chat color in C#?

Hello.

I’m currently working on a Unity game that uses Twitch chat as a controller.
I have read this topic, in which a user states that it is possible to get a user’s chat color by requesting message tags.
However, I am not sure how to go about this in C#. Here’s what my code looks like. I have tried printing the message, but this is how it comes out. How can I request the message tags?

Thank you!

Send a line:

CAP REQ :twitch.tv/tags

verbatim to the server at any point (you can even send it before PASS).

Right, I saw that in the topic I linked, but I’m looking for a method through which I may do this in C#.

The method would be your writer.WriteLine.

1 Like

This worked. Thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.