Send Announcement to Channel
Send an announcement to your Twitch channel

Send Announcement to Channel Dialog
Parameters
Preferred Account
Select required
Default:
Bot
Select the Twitch account to use when sending the announcement
Bot
: Send the message from your bot accountBroadcaster
: Send the announcement from your broadcaster account
Color
Select required
Default:
Default
Select the color for the announcement
Options: Default
, Blue
, Green
, Orange
, Purple
Message
Text required
Enter the text content for the announcement
C# Usage
Sends a Twitch chat message using either Twitch Broadcaster or Twitch Bot account
public void TwitchAnnounce(string message, bool bot = false, string color, bool fallback = false)
messagestring required Enter the message contents
botboolcolorstringSelect the color for the announcement. Valid values are:
default
– Standard colorblue
green
orange
purple
fallbackbooltrue
- (If bot
bool is set to True
), this is the same behaviour as if you had Bot as your preferred account.false
- (If bot
bool is set to True
), it will try to send using only the Bot account, and do nothing if it can't (i.e, not logged in).
using System;
public class CPHInline
{
public bool Execute()
{
//Set message for chat
string message = "This is an announcement";
//Send announcement with bot account, or fallback to broadcaster
CPH.TwitchAnnounce(message, true, color, true);
return true;
}
}