twitch-js
Version:
Javascript library for the Twitch Messaging Interface.
38 lines (37 loc) • 1.39 kB
TypeScript
import { EmoteTag } from '../../../twitch';
export declare const generalString: (maybeMessage: string) => string;
export declare const generalNumber: (maybeNumber: string) => number;
export declare const generalBoolean: (maybeBoolean: string) => boolean;
export declare const generalTimestamp: (maybeTimestamp: string) => Date;
export declare const userType: (maybeUserType: string) => string;
export declare const broadcasterLanguage: (maybeLanguage: string) => string;
export declare const followersOnly: (maybeFollowersOnly: string) => number | boolean;
/**
* Badges tag
* @see https://dev.twitch.tv/docs/irc/tags/#privmsg-twitch-tags
*/
export declare const badges: (maybeBadges: string) => Partial<{
admin: boolean;
broadcaster: boolean;
globalMod: boolean;
moderator: boolean;
partner: boolean;
premium: boolean;
staff: boolean;
subGifter: boolean;
turbo: boolean;
vip: boolean;
bits: number;
bitsLeader: number;
subscriber: number;
}> | Partial<{
[key: string]: string;
}>;
/**
* Emote tag
* @see https://dev.twitch.tv/docs/irc/tags/#privmsg-twitch-tags
*/
export declare const emotes: (maybeEmotes: string) => EmoteTag[];
export declare const emoteSets: (maybeEmoteSets: string) => string[];
export declare const mods: (message: string) => string[];
export declare const username: (...maybeUsernames: any[]) => string;