Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SearchedUserCosmetics

Cosmetics of a user found by a search

Hierarchy

  • SearchedUserCosmetics

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

colors

colors: Colors

The colors the player uses

icon

icon: { type: IconCosmetic; val: number }

The player's default icon

Type declaration

  • type: IconCosmetic

    The type of the icon

  • val: number

    The numeric value of the icon, as provided by the Geometry Dash servers

Methods

renderIcon

  • renderIcon(returnRaw?: false): Promise<ArrayBuffer>
  • renderIcon(returnRaw: true): Promise<Response>
  • Renders the user's selected default icon as an image using the GDBrowser API

    async

    Parameters

    • Optional returnRaw: false

      Whether to return a raw Response (true) or an ArrayBuffer (false). Defaults to false.

    Returns Promise<ArrayBuffer>

    The Response or ArrayBuffer containing the image

  • Renders the user's selected default icon as an image using the GDBrowser API

    async

    Parameters

    • returnRaw: true

      Whether to return a raw Response (true) or an ArrayBuffer (false). Defaults to false.

    Returns Promise<Response>

    The Response or ArrayBuffer containing the image

Generated using TypeDoc