Exemplo n.º 1
0
 /// <summary>
 /// Sends request to change color of chat name in Twitch chat.
 /// </summary>
 /// <param name="color">Enum representing available chat preset colors.</param>
 /// <param name="client">Client reference used to identify extension.</param>
 public static void ChangeChatColor(this TwitchClient client, Enums.ChatColorPresets color)
 {
     client.SendMessage($".color {color}");
 }
Exemplo n.º 2
0
 /// <summary>
 /// Sends request to change color of chat name in Twitch chat.
 /// </summary>
 /// <param name="channel">String representing the channel to send the command to.</param>
 /// <param name="color">Enum representing available chat preset colors.</param>
 /// <param name="client">Client reference used to identify extension.</param>
 public static void ChangeChatColor(this ITwitchClient client, string channel, Enums.ChatColorPresets color)
 {
     client.SendMessage(channel, $".color {color}");
 }