Appearance
@mastondzn/dank-twitch-irc / TwitchEmote
Class: TwitchEmote
Defined in: src/message/emote.ts:4
Single instance of a twitch emote in a message string.
Constructors
new TwitchEmote()
new TwitchEmote(
id
,startIndex
,endIndex
,text
):TwitchEmote
Defined in: src/message/emote.ts:31
Parameters
id
string
startIndex
number
endIndex
number
text
string
Returns
Properties
code
code:
string
Defined in: src/message/emote.ts:29
The part of the original message string that was recognizes as an emote, e.g. "Kappa".
endIndex
endIndex:
number
Defined in: src/message/emote.ts:24
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.
id
id:
string
Defined in: src/message/emote.ts:8
Numeric ID identifying the emote.
startIndex
startIndex:
number
Defined in: src/message/emote.ts:16
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.