Appearance
@mastondzn/dank-twitch-irc / TwitchEmote
Class: TwitchEmote
Single instance of a twitch emote in a message string.
Constructors
new TwitchEmote(id, startIndex, endIndex, text)
new TwitchEmote(
id
,startIndex
,endIndex
,text
):TwitchEmote
Parameters
• id: string
• startIndex: number
• endIndex: number
• text: string
Returns
Source
Properties
code
code:
string
The part of the original message string that was recognizes as an emote, e.g. "Kappa".
Source
endIndex
endIndex:
number
exclusive end index in the original message text. Note that we count unicode code points, not bytes with this. If you use this, make sure your code splits or indexes strings by their unicode code points, and not their bytes.
Source
id
id:
string
Numeric ID identifying the emote.
Source
startIndex
startIndex:
number
inclusive start index in the original message text. Note that we count unicode code points, not bytes with this. If you use this, make sure your code splits or indexes strings by their unicode code points, and not their bytes.