Appearance
@mastondzn/dank-twitch-irc / UsernoticeMessage
Class: UsernoticeMessage
Defined in: src/message/twitch-types/usernotice.ts:256
Extends
Implements
Partial<SharedChatFields&object>
Constructors
new UsernoticeMessage()
new UsernoticeMessage(
message):UsernoticeMessage
Defined in: src/message/twitch-types/usernotice.ts:331
Parameters
message
Returns
Overrides
Properties
badgeInfo
readonlybadgeInfo:TwitchBadgesList
Defined in: src/message/twitch-types/usernotice.ts:272
badgeInfoRaw
readonlybadgeInfoRaw:string
Defined in: src/message/twitch-types/usernotice.ts:273
badges
readonlybadges:TwitchBadgesList
Defined in: src/message/twitch-types/usernotice.ts:275
badgesRaw
readonlybadgesRaw:string
Defined in: src/message/twitch-types/usernotice.ts:276
bits
readonlybits:undefined|number
Defined in: src/message/twitch-types/usernotice.ts:278
bitsRaw
readonlybitsRaw:undefined|string
Defined in: src/message/twitch-types/usernotice.ts:279
channelID
readonlychannelID:string
Defined in: src/message/twitch-types/usernotice.ts:260
channelName
readonlychannelName:string
Defined in: src/message/irc/channel-irc-message.ts:35
Inherited from
color
readonlycolor:undefined|Color
Defined in: src/message/twitch-types/usernotice.ts:281
colorRaw
readonlycolorRaw:string
Defined in: src/message/twitch-types/usernotice.ts:282
displayName
readonlydisplayName:string
Defined in: src/message/twitch-types/usernotice.ts:284
emotes
readonlyemotes:TwitchEmoteList
Defined in: src/message/twitch-types/usernotice.ts:286
emotesRaw
readonlyemotesRaw:string
Defined in: src/message/twitch-types/usernotice.ts:287
eventParams
readonlyeventParams:EventParameters
Defined in: src/message/twitch-types/usernotice.ts:321
flags
readonlyflags:undefined|TwitchFlagList
Defined in: src/message/twitch-types/usernotice.ts:300
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.
flagsRaw
readonlyflagsRaw:undefined|string
Defined in: src/message/twitch-types/usernotice.ts:311
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.
ircCommand
readonlyircCommand:string
Defined in: src/message/irc/irc-message.ts:28
The parser ensures this is always uppercase
Inherited from
ircParameters
readonlyircParameters:string[]
Defined in: src/message/irc/irc-message.ts:29
Inherited from
ChannelIRCMessage.ircParameters
ircPrefix
readonlyircPrefix:undefined|IRCMessagePrefix
Defined in: src/message/irc/irc-message.ts:23
Inherited from
ircPrefixRaw
readonlyircPrefixRaw:undefined|string
Defined in: src/message/irc/irc-message.ts:22
Inherited from
ChannelIRCMessage.ircPrefixRaw
ircTags
readonlyircTags:IRCMessageTags
Defined in: src/message/irc/irc-message.ts:30
Inherited from
isMod
readonlyisMod:boolean
Defined in: src/message/twitch-types/usernotice.ts:315
isModRaw
readonlyisModRaw:string
Defined in: src/message/twitch-types/usernotice.ts:316
messageID
readonlymessageID:string
Defined in: src/message/twitch-types/usernotice.ts:313
messageText
readonlymessageText:undefined|string
Defined in: src/message/twitch-types/usernotice.ts:262
messageType
readonlymessageType:string
Defined in: src/message/twitch-types/usernotice.ts:267
messageTypeID
readonlymessageTypeID:string
Defined in: src/message/twitch-types/usernotice.ts:266
sub, resub, subgift, etc..., or the uuid of the message if its a shared chat
rawSource
readonlyrawSource:string
Defined in: src/message/irc/irc-message.ts:20
Inherited from
senderUserID
readonlysenderUserID:string
Defined in: src/message/twitch-types/usernotice.ts:270
senderUsername
readonlysenderUsername:string
Defined in: src/message/twitch-types/usernotice.ts:269
serverTimestamp
readonlyserverTimestamp:Date
Defined in: src/message/twitch-types/usernotice.ts:318
serverTimestampRaw
readonlyserverTimestampRaw:string
Defined in: src/message/twitch-types/usernotice.ts:319
sourceBadges
readonlysourceBadges:undefined|TwitchBadgesList
Defined in: src/message/twitch-types/usernotice.ts:325
Implementation of
Partial.sourceBadges
sourceBadgesInfo
readonlysourceBadgesInfo:undefined|TwitchBadgesList
Defined in: src/message/twitch-types/usernotice.ts:327
Implementation of
Partial.sourceBadgesInfo
sourceBadgesInfoRaw
readonlysourceBadgesInfoRaw:undefined|string
Defined in: src/message/twitch-types/usernotice.ts:328
Implementation of
Partial.sourceBadgesInfoRaw
sourceBadgesRaw
readonlysourceBadgesRaw:undefined|string
Defined in: src/message/twitch-types/usernotice.ts:326
Implementation of
Partial.sourceBadgesRaw
sourceChannelID
readonlysourceChannelID:undefined|string
Defined in: src/message/twitch-types/usernotice.ts:324
The channel id where the message originated from (can be the same channel we received the message from)
Implementation of
Partial.sourceChannelID
sourceID
readonlysourceID:undefined|string
Defined in: src/message/twitch-types/usernotice.ts:323
The msg-id of the source message.
Implementation of
Partial.sourceID
sourceMessageTypeId
readonlysourceMessageTypeId:undefined|string
Defined in: src/message/twitch-types/usernotice.ts:329
systemMessage
readonlysystemMessage:string
Defined in: src/message/twitch-types/usernotice.ts:263
Methods
isAnnouncement()
isAnnouncement():
this is AnnouncementUsernoticeMessage
Defined in: src/message/twitch-types/usernotice.ts:441
Returns
this is AnnouncementUsernoticeMessage
isAnonGiftPaidUpgrade()
isAnonGiftPaidUpgrade():
this is AnonGiftPaidUpgradeUsernoticeMessage
Defined in: src/message/twitch-types/usernotice.ts:425
Returns
this is AnonGiftPaidUpgradeUsernoticeMessage
isAnonSubgift()
isAnonSubgift():
this is AnonSubgiftUsernoticeMessage
Defined in: src/message/twitch-types/usernotice.ts:421
Returns
this is AnonSubgiftUsernoticeMessage
isBitsBadgeTier()
isBitsBadgeTier():
this is BitsBadgeTierUsernoticeMessage
Defined in: src/message/twitch-types/usernotice.ts:437
Returns
this is BitsBadgeTierUsernoticeMessage
isCheer()
isCheer():
this is CheerUsernoticeMessage
Defined in: src/message/twitch-types/usernotice.ts:397
Returns
this is CheerUsernoticeMessage
isGiftPaidUpgrade()
isGiftPaidUpgrade():
this is GiftPaidUpgradeUsernoticeMessage
Defined in: src/message/twitch-types/usernotice.ts:429
Returns
this is GiftPaidUpgradeUsernoticeMessage
isMassSubgift()
isMassSubgift():
this is MassSubgiftParameters
Defined in: src/message/twitch-types/usernotice.ts:417
Returns
this is MassSubgiftParameters
isRaid()
isRaid():
this is RaidUsernoticeMessage
Defined in: src/message/twitch-types/usernotice.ts:409
Returns
this is RaidUsernoticeMessage
isResub()
isResub():
this is ResubUsernoticeMessage
Defined in: src/message/twitch-types/usernotice.ts:405
Returns
this is ResubUsernoticeMessage
isRitual()
isRitual():
this is RitualUsernoticeMessage
Defined in: src/message/twitch-types/usernotice.ts:433
Returns
this is RitualUsernoticeMessage
isSharedChat()
isSharedChat():
this is UsernoticeMessage & SharedChatFields & { sourceMessageTypeID: string }
Defined in: src/message/twitch-types/usernotice.ts:455
Whether or not this message is during a shared chat session. This does NOT necessarily mean that the message is originating from another channel. Check if message.sourceChannelId !== message.channelId for that
Returns
this is UsernoticeMessage & SharedChatFields & { sourceMessageTypeID: string }
See
https://dev.twitch.tv/docs/chat/irc/#shared-chat
isSub()
isSub():
this is SubUsernoticeMessage
Defined in: src/message/twitch-types/usernotice.ts:401
Returns
this is SubUsernoticeMessage
isSubgift()
isSubgift():
this is SubgiftUsernoticeMessage
Defined in: src/message/twitch-types/usernotice.ts:413
Returns
this is SubgiftUsernoticeMessage
isViewerMilestone()
isViewerMilestone():
this is ViewerMilestoneUsernoticeMessage
Defined in: src/message/twitch-types/usernotice.ts:445
Returns
this is ViewerMilestoneUsernoticeMessage