Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents an osu!droid player.

Hierarchy

  • Player

Index

Constructors

Properties

accuracy: number = 0

The overall accuracy of the player.

avatarURL: string = ""

The avatar URL of the player.

email: string = ""

The email that is attached to the player's account.

location: string = ""

The location of the player based on ISO 3166-1 country codes. See this Wikipedia page for more information.

playCount: number = 0

The amount of times the player has played.

rank: number = 0

The overall rank of the player.

recentPlays: Score[] = []

Recent plays of the player.

score: number = 0

The total score of the player.

uid: number = 0

The uid of the player.

username: string = ""

The username of the player.

Methods

  • fillInformation(info: string): Player
  • toString(): string
  • getInformation(uid: number): Promise<null | Player>
  • getInformation(username: string): Promise<null | Player>
  • Retrieves a player's info based on their uid.

    Parameters

    • uid: number

      The uid of the player.

    Returns Promise<null | Player>

    The player, null if the player is not found.

  • Retrieves a player's info based on their username.

    Parameters

    • username: string

      The username of the player.

    Returns Promise<null | Player>

    The player, null if the player is not found.

Generated using TypeDoc