Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StatlessSearchedUser

Details about a Geometry Dash player returned from a search, without any stats

Hierarchy

Index

Constructors

constructor

Properties

Private _creator

_creator: UserCreator

The searched user's creator

accountID

accountID: number

The player's account ID

cosmetics

The player's cosmetics

Optional id

id: number

The player's user ID. Will only be present if it is known

username

username: string

The player's username

Methods

getAccountComments

  • Get the most recent comment posted to this account's page

    async

    Returns Promise<AccountComment<this>>

    The most recent comment

  • Get the comments posted to this account's page

    async

    Parameters

    • num: number

      The maximum number of comments to get

    Returns Promise<AccountComment<this>[]>

    An array of this user's profile comments

getComments

  • getComments(byLikes?: boolean): Promise<LevelComment<this>>
  • getComments(byLikes: boolean, num: number): Promise<LevelComment<this>[]>
  • Gets the most recent or most liked level comment by the user

    async

    Parameters

    • Optional byLikes: boolean

      Whether to sort by likes or not. Defaults to false

    Returns Promise<LevelComment<this>>

    The most recent or most liked comment made by this user

  • Gets the most recent or most liked level comments by the user

    async

    Parameters

    • byLikes: boolean

      Whether to sort by likes or not. Defaults to false

    • num: number

      The number of comments to get

    Returns Promise<LevelComment<this>[]>

    An array of the most recent or most liked comments made by this user

getLevels

  • getLevels(): Promise<this extends LoggedInUser ? LoggedInSearchedLevel : SearchedLevel>
  • getLevels(num: number): Promise
  • Gets the most recent level by the user

    async

    Returns Promise<this extends LoggedInUser ? LoggedInSearchedLevel : SearchedLevel>

    The most recent level made by this user

  • Gets the most recentlevels by the user

    async

    Parameters

    • num: number

      The number of levels to get

    Returns Promise

    An array of the most recent levels made by this user

resolve

  • resolve(): Promise<User>
  • Converts the searched user into a full user

    async

    Returns Promise<User>

    The full data about the user

Generated using TypeDoc