Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Artist

Index

Constructors

constructor

  • new Artist(res: any, key?: string, partial?: boolean, config?: Config): Artist

Properties

Private config

config: Config

id

id: number

image

image: string

iq

iq: number

Private Optional key

key: undefined | string

name

name: string

partial

partial: boolean

raw

raw: any

socialmedia

socialmedia: { facebook?: undefined | string; twitter?: undefined | string }

Type declaration

  • Optional facebook?: undefined | string
  • Optional twitter?: undefined | string

thumbnail

thumbnail: string

url

url: string

verified

verified: { meme: boolean; normal: boolean }

Type declaration

  • meme: boolean
  • normal: boolean

Methods

fetch

  • Fetches All Information about the Artist and updates all the existing Properties (Requires Key)

    example

    const NewArtist = await Artist.fetch();

    Returns Promise<Artist>

songs

  • songs(options?: { page?: undefined | number; per_page?: undefined | number; sort?: undefined | string }): Promise<any>
  • Fetches the songs of the Artist (Requires Key)

    example

    const Songs = await Artist.songs();

    Parameters

    • options: { page?: undefined | number; per_page?: undefined | number; sort?: undefined | string } = ...
      • Optional page?: undefined | number
      • Optional per_page?: undefined | number
      • Optional sort?: undefined | string

    Returns Promise<any>

Generated using TypeDoc