Table of Contents

Class PubSubWhisperEventData

Namespace
Firesplash.UnityAssets.TwitchIntegration.DataTypes.PubSub.EventData
Assembly
Firesplash.UnityAssets.TwitchIntegration.dll

Unfortunately this message is documented but without any documentation... We tried our best to elaborate.

[Serializable]
public class PubSubWhisperEventData : PubSubEventMessageData
Inheritance
PubSubWhisperEventData
Inherited Members

Properties

Body

The actual chat message containing all emotes as text

[JsonProperty("body")]
public string Body { get; }

Property Value

string

Data

The twitch documentation is not clear on this data structure and the JSON they deliver is invalid. It is just implemented for reference. Blame Twitch. Sorry.

[JsonProperty("data")]
public AbsolutelyStupidPubSubWhisperDataObject Data { get; }

Property Value

AbsolutelyStupidPubSubWhisperDataObject

FromId

The user id of the chatter who sent the message

[JsonProperty("from_id")]
public int FromId { get; }

Property Value

int

Nonce

A unique id of the pubsub message

[JsonProperty("nonce")]
public string Nonce { get; }

Property Value

string

Recipient

The Chatter-Object of the receiver of this message

[JsonProperty("recipient")]
public Chatter Recipient { get; }

Property Value

Chatter

SentTs

A Unix Timestamp when the message was sent

[JsonProperty("sent_ts")]
public int SentTs { get; }

Property Value

int

Tags

The IRC Tages of this message containing additional information

[JsonProperty("tags")]
public IRCMessageTags Tags { get; }

Property Value

IRCMessageTags

ThreadId

Guess: The new "Reply" feature? Probably this is indicating a reply to another message's Data.Id

[JsonProperty("thread_id")]
public string ThreadId { get; }

Property Value

string

Type

Always whisper_received

[JsonProperty("type")]
public string Type { get; }

Property Value

string