Skip to content

@mastondzn/dank-twitch-irc / GlobaluserstateMessage

Class: GlobaluserstateMessage ​

Defined in: src/message/twitch-types/globaluserstate.ts:23

Global state of the logged in user.

Extends ​

Implements ​

Constructors ​

Constructor ​

new GlobaluserstateMessage(message): GlobaluserstateMessage

Defined in: src/message/twitch-types/globaluserstate.ts:43

Parameters ​

message ​

IRCMessageData

Returns ​

GlobaluserstateMessage

Overrides ​

IRCMessage.constructor

Properties ​

badgeInfo ​

readonly badgeInfo: TwitchBadgesList

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

Implementation of ​

GlobalUserState.badgeInfo


badgeInfoRaw ​

readonly badgeInfoRaw: string

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

Implementation of ​

GlobalUserState.badgeInfoRaw


badges ​

readonly badges: TwitchBadgesList

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

Implementation of ​

GlobalUserState.badges


badgesRaw ​

readonly badgesRaw: string

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

Implementation of ​

GlobalUserState.badgesRaw


color ​

readonly color: Color | undefined

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

Implementation of ​

GlobalUserState.color


colorRaw ​

readonly colorRaw: string

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

Implementation of ​

GlobalUserState.colorRaw


displayName ​

readonly displayName: string

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

Implementation of ​

GlobalUserState.displayName


emoteSets ​

readonly emoteSets: TwitchEmoteSets

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

Implementation of ​

GlobalUserState.emoteSets


emoteSetsRaw ​

readonly emoteSetsRaw: string

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

Implementation of ​

GlobalUserState.emoteSetsRaw


ircCommand ​

readonly ircCommand: string

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

The parser ensures this is always uppercase

Inherited from ​

IRCMessage.ircCommand


ircParameters ​

readonly ircParameters: string[]

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

Inherited from ​

IRCMessage.ircParameters


ircPrefix ​

readonly ircPrefix: IRCMessagePrefix | undefined

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

Inherited from ​

IRCMessage.ircPrefix


ircPrefixRaw ​

readonly ircPrefixRaw: string | undefined

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

Inherited from ​

IRCMessage.ircPrefixRaw


ircTags ​

readonly ircTags: IRCMessageTags

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

Inherited from ​

IRCMessage.ircTags


rawSource ​

readonly rawSource: string

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

Inherited from ​

IRCMessage.rawSource


userID ​

readonly userID: string

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

Implementation of ​

GlobalUserState.userID

Accessors ​

userId ​

Get Signature ​

get userId(): string

Defined in: src/message/twitch-types/globaluserstate.ts:39

Deprecated ​

Use userID instead.

Returns ​

string

Methods ​

extractGlobalUserState() ​

extractGlobalUserState(): GlobalUserState

Defined in: src/message/twitch-types/globaluserstate.ts:64

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

Returns ​

GlobalUserState