Represents skin and cape of a logged in player.

Hierarchy

Constructors

Properties

associatedAccount: any
cape_url: any
skin_url: any
slim: boolean
uploadedAt: number

Methods

  • Removes the current skin and sets it to default (Steve).

    Returns Promise<boolean>

    Boolean indicating whether the reset was successful.

  • Upload a skin to Mojang servers.

    NOTE - This will also overwrite the currently active skin!

    Parameters

    • file: string | Buffer | File

      The PNG file that will be uploaded.

    • slim: boolean = false

      Whether or not the skin should be slim or classic.

    Returns Promise<boolean>

    A Boolean indicatating if the upload was successful, false is also returned if the file input is not a valid PNG.