SendAction
Sends an Action from either the Twitch Broadcaster or Twitch Bot Account (denoted by *Italics* in Twitch chat)
Signature
public void SendAction(string action, bool useBot = true, bool fallback = true)
Parameters
action
string required
Enter the name of the Action exactly as it appears in Streamer.bot
useBot
bool
Default:
True
No description provided.
fallback
bool
Default:
True
true- (Ifbotbool is set toTrue), this is the same behaviour as if you had Bot as your preferred account.false- (Ifbotbool is set toTrue), it will try to send using only the Bot account, and do nothing if it can't (i.e, not logged in).
Return Type
void
Example
using System;
public class CPHInline
{
public bool Execute()
{
//Set Action name here
string action = "Test Action Name";
//Send reply with bot account
CPH.SendAction(action, true, true);
return true;
}
}