Table of Contents

Class IRCMessage

Namespace
Firesplash.UnityAssets.TwitchIntegration.DataTypes.IRC
Assembly
Firesplash.UnityAssets.TwitchIntegration.dll

This object represents a single message in the chat

public class IRCMessage
Inheritance
IRCMessage
Derived
Inherited Members

Constructors

IRCMessage(string, MatchCollection, MatchCollection)

This consturctor is internal to the library.

public IRCMessage(string commandIdentifier, MatchCollection msgMatchCollection, MatchCollection msgTagsCollection)

Parameters

commandIdentifier string
msgMatchCollection MatchCollection
msgTagsCollection MatchCollection

Fields

Badges

This provides a parsed and better usable access to the badges than Sender.Badges does. If you would try to find out the subscriber months, the subscriber badge would probably show a wrong looking value as the badges are for the "levels" whereas the exact number of months sits inside the Tag badge-info! Please referr to Twitchs documentation: https://dev.twitch.tv/docs/irc/tags

public Dictionary<string, int> Badges

Field Value

Dictionary<string, int>

Properties

Channel

The channel where this message has been received in

public string Channel { get; }

Property Value

string

IsCommand

Is this message a bot command?

public bool IsCommand { get; }

Property Value

bool

IsSenderBroadcaster

True, if the sender of this message is the broadcaster in the channel

public bool IsSenderBroadcaster { get; }

Property Value

bool

IsSenderModerator

True, if the sender of this message is the broadcaster in the channel

public bool IsSenderModerator { get; }

Property Value

bool

IsSenderSubscriber

True, if the sender of this message is subscriber in the channel

public bool IsSenderSubscriber { get; }

Property Value

bool

IsSenderVIP

True, if the sender of this message is subscriber in the channel

public bool IsSenderVIP { get; }

Property Value

bool

Sender

Who sent the message?

public Chatter Sender { get; }

Property Value

Chatter

Tags

A dictionary containing all Tags the message has attached. The key represents the badge type, The value is null if there is no data for it available.

public Dictionary<string, string> Tags { get; }

Property Value

Dictionary<string, string>

Text

The raw text of the message

public string Text { get; }

Property Value

string