@twurple/api
Version:
Interact with Twitch's API.
21 lines (20 loc) • 553 B
JavaScript
import { __decorate } from "tslib";
import { rawDataSymbol, rtfm } from '@twurple/common';
import { HelixEmoteBase } from "./HelixEmoteBase.mjs";
/**
* A Twitch emote.
*/
let HelixEmote = class HelixEmote extends HelixEmoteBase {
/**
* Gets the URL of the emote image in the given scale.
*
* @param scale The scale of the image.
*/
getImageUrl(scale) {
return this[rawDataSymbol].images[`url_${scale}x`];
}
};
HelixEmote = __decorate([
rtfm('api', 'HelixEmote', 'id')
], HelixEmote);
export { HelixEmote };