UNPKG

twitch-emote

Version:

splice twitch emotes from a message string

13 lines (12 loc) 822 B
import { ApiResponseHeaders } from './api'; import { EmoteData } from './types'; export type ServicesEach = 'twitch' | '7tv' | 'bttv' | 'ffz'; export type Services = 'all' | ServicesEach[]; export declare function correctServices(services: Services): string; export declare const isChannelThrow: (channel: string) => string; export declare function uniqueArr<T>(arr: T | T[]): T[]; export declare const highestQuality: ({ urls }: EmoteData) => string; export declare const asyncEach: <T>(arr: T[], callback: (item: T) => Promise<void>) => Promise<void[]>; export declare const repeat: (startTime: number, callback: () => void) => Promise<void>; export declare const logRate: (type: string, { limit, remaining, reset }: ApiResponseHeaders) => void; export declare const sleep: (ms: number) => Promise<unknown>;