TwitchPlugin.Room

Contained state of a channel, so that there can be several alongside each other.

Constructors

this
this(string channelName)

Constructor taking a string (channel) name.

Members

Functions

uniqueID
auto uniqueID()

Accessor to _uniqueID.

Manifest constants

messageMemory
enum messageMemory;

How many messages to keep in memory, to allow for nuking.

Structs

Stream
struct Stream

Representation of a broadcast (stream).

Variables

_uniqueID
uint _uniqueID;

A unique ID for this instance of a room.

broadcasterDisplayName
string broadcasterDisplayName;

Display name of the broadcaster.

broadcasterName
string broadcasterName;

Account name of the broadcaster.

channelName
string channelName;

Name of the channel.

followers
Follower[string] followers;

Associative array of the Followers of this channel, keyed by nickname.

followersLastCached
long followersLastCached;

UNIX timestamp of when followers was last cached.

id
uint id;

Broadcaster user/account/room ID (not name).

lastNMessages
CircularBuffer!(IRCEvent, Yes.dynamic, messageMemory) lastNMessages;

The last n messages sent in the channel, used by nuke.

sawUserstate
bool sawUserstate;

Set when we see a USERSTATE upon joining the channel.

songrequestHistory
long[string] songrequestHistory;

Song request history; UNIX timestamps keyed by nickname.

stream
Stream stream;

The current, ongoing stream.