Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CheerPrivmsgMessage

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly badgeInfo

badgeInfo: TwitchBadgesList

Readonly badgeInfoRaw

badgeInfoRaw: string

Readonly badges

Readonly badgesRaw

badgesRaw: string

Readonly bits

bits: number

Readonly bitsRaw

bitsRaw: string

Readonly channelID

channelID: string

Readonly channelName

channelName: string

Readonly color

color: Color | undefined

Readonly colorRaw

colorRaw: string

Readonly displayName

displayName: string

Readonly emotes

Readonly emotesRaw

emotesRaw: string

Readonly flags

flags: TwitchFlagList | undefined

Can be an array of Twitch AutoMod flagged words, for use in moderation and/or filtering purposes.

If the flags tag is missing or of a unparseable format, this will be undefined. This is unlike most other attributes which when missing or malformed will fail the message parsing. However since this attribute is completely undocumented we cannot rely on the flags tag being stable, so this soft fallback is used instead. While it will be a major version release if this attribute changes format in dank-twitch-irc, using this is still at your own risk since it may suddenly contain unexpected data or turn undefined one day as Twitch changes something. In short: Use at your own risk and make sure your implementation can handle the case where this is undefined.

Readonly flagsRaw

flagsRaw: string | undefined

Twitch AutoMod raw flags string.

If the flags tag is missing or of a unparseable format, this will be undefined. This is unlike most other attributes which when missing or malformed will fail the message parsing. However since this attribute is completely undocumented we cannot rely on the flags tag being stable, so this soft fallback is used instead. In short, ensure your implementation can handle the case where this is undefined or is in a format you don't expect.

Readonly ircCommand

ircCommand: string

The parser ensures this is always uppercase

Readonly ircParameters

ircParameters: string[]

Readonly ircPrefix

ircPrefix: IRCMessagePrefix | undefined

Readonly ircPrefixRaw

ircPrefixRaw: string | undefined

Readonly ircTags

Readonly isAction

isAction: boolean

Readonly isMod

isMod: boolean

Readonly isModRaw

isModRaw: string

Readonly messageID

messageID: string

Readonly messageText

messageText: string

Readonly rawSource

rawSource: string

Readonly senderUserID

senderUserID: string

Readonly senderUsername

senderUsername: string

Readonly serverTimestamp

serverTimestamp: Date

Readonly serverTimestampRaw

serverTimestampRaw: string

Methods

extractUserState

isCheer

  • isCheer(): this is CheerPrivmsgMessage

Generated using TypeDoc