sendAnnouncement

Sends a Twitch chat announcement.

Message lengths may not exceed 500 characters; messages longer are truncated.

Valid values for colour are:

* blue * green * orange * purple * primary (default)

Invalid values are overridden to primary.

Note: Must be called from inside a Fiber.

version(TwitchSupport && WithTwitchPlugin)
package
sendAnnouncement
(,
const ulong channelID
,
const string message
,
const string colour = "primary"
,
const string caller = __FUNCTION__
)

Parameters

plugin TwitchPlugin

The current TwitchPlugin.

channelID ulong

Twitch ID of channel to send announcement to.

message string

The announcement to make in the broadcaster’s chat room.

colour string

The color used to highlight the announcement.

caller string

Name of the calling function.

Return Value

Type: auto

A Voldemort struct with the HTTP response code.

See Also