How do I get user chat color in C#?


#1

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!


#2

Send a line:

CAP REQ :twitch.tv/tags

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


#3

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


#4

The method would be your writer.WriteLine.


#5

This worked. Thank you!


closed #6

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