UNPKG

myteams-api

Version:

An MyTeams Module to use discord.js and Twitch API easily

28 lines (27 loc) 904 B
/// <reference types="node" /> import { EventEmitter } from "events"; import { User } from "../Types/objects"; import { TwitchConfig, GetStreamsOptions } from "../Types/options"; import { Scope } from "../Types/scopes"; import { APIStreamResponse } from "../Types/responses"; export declare class TwitchHelper extends EventEmitter { client_secret: string; client_id: string; user?: User; access_token?: string; refresh_token?: string; scopes?: Scope[]; redirect_uri?: string; base: string; refresh_attempts: number; ready: boolean; constructor(config: TwitchConfig); private _init; private _get; private _getAppAccessToken; private _refresh; private _validate; private _isListeningFor; getCurrentUser(): Promise<User | undefined>; getStreams(options: GetStreamsOptions): Promise<APIStreamResponse>; }