Class Leaderboard

The leaderboard class for the TTS and W2L leaderboards.

Constructors

  • Parameters

    • client: Client

      The main client.

    • data: {
          success: boolean;
          tts_leaderboard: {
              creator_user_token: string;
              default_avatar_color_index: number;
              default_avatar_index: number;
              display_name: string;
              gravatar_hash: string;
              uploaded_count: number;
              username: string;
          }[];
          w2l_leaderboard: {
              creator_user_token: string;
              default_avatar_color_index: number;
              default_avatar_index: number;
              display_name: string;
              gravatar_hash: string;
              uploaded_count: number;
              username: string;
          }[];
      }

      The raw leaderboard data from the FakeYou API.

      • success: boolean
      • tts_leaderboard: {
            creator_user_token: string;
            default_avatar_color_index: number;
            default_avatar_index: number;
            display_name: string;
            gravatar_hash: string;
            uploaded_count: number;
            username: string;
        }[]
      • w2l_leaderboard: {
            creator_user_token: string;
            default_avatar_color_index: number;
            default_avatar_index: number;
            display_name: string;
            gravatar_hash: string;
            uploaded_count: number;
            username: string;
        }[]

    Returns Leaderboard

Properties

ttsLeaderboard: LeaderboardUser[]
w2lLeaderboard: LeaderboardUser[]
webUrl: string

The URL to the leaderboard page in the browser.

Methods

Generated using TypeDoc