Class Client

Class representing the base client of MultiVersus.

Hierarchy

  • Client

Constructors

  • Creates a client.

    Parameters

    • accessToken: string
    • clientId: string

    Returns Client

Methods

  • Fetch users Battlepass.

    Parameters

    • id: string

      The ID of the user.

    Returns Promise<any>

  • Fetch users clan(s).

    Parameters

    • id: string

      The ID of the user.

    • Optional page: number

      The match page to fetch.

    • Optional count: number

      The count to fetch.

    Returns Promise<any>

  • Fetch a match from an ID.

    Parameters

    • id: string

      The ID of the match to fetch

    Returns Promise<any>

  • Fetch a page of matches of a user.

    Parameters

    • id: string

      The ID of the user.

    • Optional page: number

      The match page to fetch.

    Returns Promise<any>

  • Fetch the leaderboard of a user.

    Parameters

    • id: string

      The ID of the user.

    • type: leaderboardType

      The leaderboard type to fetch.

    Returns Promise<any>

  • Fetch the leaderboard of a user with a character.

    Parameters

    • id: string

      The ID of the user.

    • type: leaderboardType

      The leaderboard type to fetch.

    • character: string

      The character to fetch.

    Returns Promise<any>

  • Fetch users quests.

    Parameters

    • id: string

      The ID of the user.

    Returns Promise<any>

  • Search for users from a username.

    Parameters

    • username: string

      The username to search for.

    • Optional limit: number

      Limit of usernames to return.

    Returns Promise<any>

Generated using TypeDoc