UNPKG

@twitchfy/chatbot

Version:

A powerful node module to make your own Twitch ChatBot

23 lines (22 loc) 843 B
import type { GlobalEmote as GlobalEmoteData } from '@twitchfy/api-types'; import type { ChatBot } from './ChatBot'; import { Emote } from './Emote'; import type { EventSubConnection } from '../enums'; /** * Represents a Twitch global emote. */ export declare class GlobalEmote<T extends EventSubConnection> extends Emote<T, 'global'> { /** * 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: ChatBot<T>, data: GlobalEmoteData & { template: string; }); /** * Overrides isChannel method from BaseEmote to assert this as ChannelEmote and not BaseEmote. * @returns Whether the emote is a global emote. */ isGlobal(): this is GlobalEmote<T>; }