UNPKG

lunify.js

Version:

A basic api wrapper for the spotify api covering the oauth routes.

36 lines (35 loc) 911 B
import { Lunify } from '../..'; import { ApiImage, ApiUser } from '../../../interfaces/user'; import { UserOauth } from './Oauth'; import { Player } from '../player'; export * from './Oauth'; export declare class PartialUser { client: Lunify; oauth: UserOauth; /** * Control user playback */ player: Player; constructor(client: Lunify, oauth: UserOauth); } export declare class User extends PartialUser { client: Lunify; oauth: UserOauth; country?: string; displayName: string | null; email?: string; explicitContent?: { enabled: boolean; locked: boolean; }; externalUrls: Record<string, string>; followers: { url: string; total: number; }; url: string; id: string; images: ApiImage[]; product?: 'premium' | 'free' | 'open'; constructor(client: Lunify, oauth: UserOauth, data: ApiUser); }