Skip to content

@mastondzn/dank-twitch-irc / GlobaluserstateMessage

Class: GlobaluserstateMessage

Global state of the logged in user.

Extends

Implements

Constructors

new GlobaluserstateMessage(message)

new GlobaluserstateMessage(message): GlobaluserstateMessage

Parameters

message: IRCMessageData

Returns

GlobaluserstateMessage

Overrides

IRCMessage.constructor

Source

src/message/twitch-types/globaluserstate.ts:38

Properties

badgeInfo

readonly badgeInfo: TwitchBadgesList

Implementation of

GlobalUserState.badgeInfo

Source

src/message/twitch-types/globaluserstate.ts:27


badgeInfoRaw

readonly badgeInfoRaw: string

Implementation of

GlobalUserState.badgeInfoRaw

Source

src/message/twitch-types/globaluserstate.ts:28


badges

readonly badges: TwitchBadgesList

Implementation of

GlobalUserState.badges

Source

src/message/twitch-types/globaluserstate.ts:29


badgesRaw

readonly badgesRaw: string

Implementation of

GlobalUserState.badgesRaw

Source

src/message/twitch-types/globaluserstate.ts:30


color

readonly color: undefined | Color

Implementation of

GlobalUserState.color

Source

src/message/twitch-types/globaluserstate.ts:31


colorRaw

readonly colorRaw: string

Implementation of

GlobalUserState.colorRaw

Source

src/message/twitch-types/globaluserstate.ts:32


displayName

readonly displayName: string

Implementation of

GlobalUserState.displayName

Source

src/message/twitch-types/globaluserstate.ts:33


emoteSets

readonly emoteSets: TwitchEmoteSets

Implementation of

GlobalUserState.emoteSets

Source

src/message/twitch-types/globaluserstate.ts:34


emoteSetsRaw

readonly emoteSetsRaw: string

Implementation of

GlobalUserState.emoteSetsRaw

Source

src/message/twitch-types/globaluserstate.ts:35


ircCommand

readonly ircCommand: string

The parser ensures this is always uppercase

Inherited from

IRCMessage.ircCommand

Source

src/message/irc/irc-message.ts:28


ircParameters

readonly ircParameters: string[]

Inherited from

IRCMessage.ircParameters

Source

src/message/irc/irc-message.ts:29


ircPrefix

readonly ircPrefix: undefined | IRCMessagePrefix

Inherited from

IRCMessage.ircPrefix

Source

src/message/irc/irc-message.ts:23


ircPrefixRaw

readonly ircPrefixRaw: undefined | string

Inherited from

IRCMessage.ircPrefixRaw

Source

src/message/irc/irc-message.ts:22


ircTags

readonly ircTags: IRCMessageTags

Inherited from

IRCMessage.ircTags

Source

src/message/irc/irc-message.ts:30


rawSource

readonly rawSource: string

Inherited from

IRCMessage.rawSource

Source

src/message/irc/irc-message.ts:20


userID

readonly userID: string

Implementation of

GlobalUserState.userID

Source

src/message/twitch-types/globaluserstate.ts:36

Methods

extractGlobalUserState()

extractGlobalUserState(): GlobalUserState

Extracts a plain object only containing the fields defined by the GlobalUserState interface.

Returns

GlobalUserState

Source

src/message/twitch-types/globaluserstate.ts:59