Class SmogonApiClient

API client to load data from Smogon API.

Hierarchy

  • SmogonApiClient

Constructors

Methods

  • Loads a list of all available formats for a given timeframe.

    Returns

    List of formats.

    Parameters

    • timeframe: Timeframe

      Timeframe to load.

    • useMonotype: boolean = false

      If monotype formats should be loaded instead of "normal" formats, defaults to false.

    Returns Promise<Format[]>

  • Loads moveset data for the given timeframe and format.

    Note: The /chaos/ and the /moveset/ endpoints are identical in terms of data. Previously this method aliased to fetchChaos which was removed for consistency.

    Returns

    Moveset data.

    Parameters

    Returns Promise<Movesets>

Generated using TypeDoc