{"version":3,"file":"emote.mjs","names":[],"sources":["../../src/message/emote.ts"],"sourcesContent":["/**\n * Single instance of a twitch emote in a message string.\n */\nexport class TwitchEmote {\n  /**\n   * Numeric ID identifying the emote.\n   */\n  public id: string;\n\n  /**\n   * inclusive start index in the original message text.\n   * Note that we count unicode code points, not bytes with this.\n   * If you use this, make sure your code splits or indexes strings by their\n   * unicode code points, and not their bytes.\n   */\n  public startIndex: number;\n\n  /**\n   * exclusive end index in the original message text.\n   * Note that we count unicode code points, not bytes with this.\n   * If you use this, make sure your code splits or indexes strings by their\n   * unicode code points, and not their bytes.\n   */\n  public endIndex: number;\n\n  /**\n   * The part of the original message string that was recognizes as an emote, e.g. \"Kappa\".\n   */\n  public code: string;\n\n  public constructor(\n    id: string,\n    startIndex: number,\n    endIndex: number,\n    text: string,\n  ) {\n    this.id = id;\n    this.startIndex = startIndex;\n    this.endIndex = endIndex;\n    this.code = text;\n  }\n}\n"],"mappings":";;;;AAGA,IAAa,cAAb,MAAyB;;;;CAIvB;;;;;;;CAQA;;;;;;;CAQA;;;;CAKA;CAEA,YACE,IACA,YACA,UACA,MACA;AACA,OAAK,KAAK;AACV,OAAK,aAAa;AAClB,OAAK,WAAW;AAChB,OAAK,OAAO"}