Options
All
  • Public
  • Public/Protected
  • All
Menu

Single instance of a twitch emote in a message string.

Hierarchy

  • TwitchEmote

Index

Constructors

  • new TwitchEmote(id: string, startIndex: number, endIndex: number, text: string): TwitchEmote

Properties

code: string

The part of the original message string that was recognizes as an emote, e.g. "Kappa".

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.

id: string

Numeric ID identifying the emote.

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.

Generated using TypeDoc