Class LeaderboardUser

A user in the leaderboard. The data here is limited compared to a profile user.

Implements

Constructors

  • Parameters

    • client: Client

      The main client.

    • data: {
          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 user data from the FakeYou API.

      • 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 LeaderboardUser

Properties

client: Client
creatorUserToken: string
defaultAvatarColorIndex: number
defaultAvatarIndex: number
displayName: string
fetchProfile: ((this) => Promise<ProfileUser | undefined>) = implFetchUser

Fetch the full user profile for this user, which includes more data than the leaderboard user.

Type declaration

    • (this): Promise<ProfileUser | undefined>
    • Fetch the full user profile for this user, which includes more data than the leaderboard user.

      Parameters

      Returns Promise<ProfileUser | undefined>

gravatarHash: string
uploadedCount: number
username: string

The username of the user.

webUrl: string

The URL to the user's profile in the browser.

Generated using TypeDoc