Skip to content

Messages

AnkhHeart edited this page Feb 24, 2018 · 1 revision

Sending Messages to the Stream Chat

Function

void SendStreamMessage(string message)

Usage

Parent.SendStreamMessage("This is my message!")

Sending Whispers to the Stream Chat (Only applicable to Twitch)

Function

void SendStreamWhisper(string target, string message)

Usage

Parent.SendStreamWhisper("ankhheart","This is my whisper!")

Sending Messages to Discord (Only if the user has set up the bot for Discord)

Function

void SendDiscordMessage(string message)

Usage

Parent.SendDiscordMessage("This will appear on Discord")

Sending DMs to Users on Discord

Function

void SendDiscordDM(string target, string message)

Usage

Parent.SendDiscordDM("ankhheart","You will receive this message!")

Sending an event to Connected Overlays

Function

void BroadcastWsEvent(string eventName, string jsonData)

Usage

Parent.BroadcastWsEvent("EVENT_SHOW_COUNTER","{'show':false}")