public bool SendWhisper(string userName, string message, bool bot = true)
Login name of the user you want to send a whisper to
Enter the message contents
True
true - Send the message using your Twitch Bot accountfalse - Send the message using your Twitch Broadcaster accountbool
using System;
public class CPHInline
{
public bool Execute()
{
//Define user login you want to whisper
string userName = "streamerdotbot";
//Set message for chat
string message = "This is a test message.";
//Send message with bot account
bool wasSend = CPH.SendWhisper(userName, message, true);
if(wasSend){
//This does not mean that is was received by the user.
//It may still be silently dropped by Twitch
CPH.LogInfo("Whisper was send!");
}
return true;
}
}