@twitchfy/chatbot
Version:
A powerful node module to make your own Twitch ChatBot
26 lines (25 loc) • 786 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GlobalEmote = void 0;
const Emote_1 = require("./Emote");
/**
* Represents a Twitch global emote.
*/
class GlobalEmote extends Emote_1.Emote {
/**
* Creates a new instance of the global emote.
* @param chatbot The current instance of the chatbot.
* @param data The data of the global emote returned from the API.
*/
constructor(chatbot, data) {
super(chatbot, { ...data, owner_id: '0', emote_set_id: '0' });
}
/**
* Overrides isChannel method from BaseEmote to assert this as ChannelEmote and not BaseEmote.
* @returns Whether the emote is a global emote.
*/
isGlobal() {
return true;
}
}
exports.GlobalEmote = GlobalEmote;