/// <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}"); }
/// <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}"); }