UNPKG

@twurple/api

Version:

Interact with Twitch's API.

24 lines (23 loc) 725 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HelixEmote = void 0; const tslib_1 = require("tslib"); const common_1 = require("@twurple/common"); const HelixEmoteBase_1 = require("./HelixEmoteBase"); /** * A Twitch emote. */ let HelixEmote = class HelixEmote extends HelixEmoteBase_1.HelixEmoteBase { /** * Gets the URL of the emote image in the given scale. * * @param scale The scale of the image. */ getImageUrl(scale) { return this[common_1.rawDataSymbol].images[`url_${scale}x`]; } }; exports.HelixEmote = HelixEmote; exports.HelixEmote = HelixEmote = tslib_1.__decorate([ (0, common_1.rtfm)('api', 'HelixEmote', 'id') ], HelixEmote);