Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SongsClient

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private config

config: Config

Private Optional key

key: undefined | string

Methods

get

  • get(q: number): Promise<Song>
  • Fetches the Song using the provided ID (Requires Key)

    example

    const Song = await SongsClient.get(3276244);

    Parameters

    • q: number

    Returns Promise<Song>

search

  • search(q: string): Promise<Song[]>
  • Searches for songs for the provided query (Key is optional)

    example

    const SearchResults = await SongsClient.search("faded");

    Parameters

    • q: string

    Returns Promise<Song[]>

Generated using TypeDoc