Represents a player from the API

Hierarchy

Constructors

Properties

apiVersion: `${number}.${number}.${number}`

The version of the requested API route

blocksWalked: number

The total amount of blocks travelled by the player

This also counts teleportation by quests etc.
The field overflows like a 32-bit integer.
classes: PlayerClass[]

The classes of the player

deaths: number

The total amount of deaths

discoveries: number

The total amount of discoveries

This includes duplicate and removed discoveries.
dungeons: RepeatableContent[]

The total amount of times the player has run specific dungeons

dungeonsIncludingDeleted: RepeatableContent[]

The total amount of times the player has run specific dungeons, including on deleted classes

firstJoin: Date

The first join of the player as a Date

firstJoinTimestamp: number

The first join of the player as a unix timestamp

forumId: null | number

The ID of the linked forum member, if available

The guild data of the player

itemsIdentified: number

The total amount of items identified

This statistic is no longer being updated.
lastCharacter: null | PlayerClass

The last character this player has used, if available

lastJoin: Date

The last join of the player as a Date

lastJoinTimestamp: number

The last join of the player as a unix timestamp

libVersion: `${number}.${number}.${number}`

The version of the representation of the data by the wrapper

logins: number

The total amount of logins

minutesPlayed: number

The playtime of the player in minutes

Accurate down to 5 minutes. Same restrictions as with playtime apply.
mobsKilled: number

The total amount of mobKills

name: string

The account name of the player

playtime: number

The playtime of the player in its native unit

The playtime unit is 5 minutes. Be aware that playtime is affected by server lag and other factors.
publicProfile: boolean

Whether the player has their profile set to public. If false, ability tree lookups will fail and skillpoints will be null

pvp: PvpData

The nether PvP stats of the player

The total amount of times the player has run specific raids

raidsIncludingDeleted: RepeatableContent[]

The total amount of times the player has run specific raids, including on deleted classes

rank: RankData

The rank data of the player

ranking: {}

The leaderboard rankings of the player in all player leaderboards (see fetchLeaderboardTypes), only the leaderboards where the player is in the top 3,000,000 are set.

Type declaration

    receivedAt: number

    The unix timestamp indicating when this request was received

    This is measured using the local clock.
    If the response was returned from cache, then requestedAt, respondedAt and receivedAt may be in the past.
    requestedAt: number

    The unix timestamp indicating when this request was sent

    This is measured using the local clock.
    If the response was returned from cache, then requestedAt, respondedAt and receivedAt may be in the past.
    respondedAt: number

    The unix timestamp indicating when this request was responded to by the API

    This is measured using the API server's clock.
    If the response was returned from cache, then requestedAt, respondedAt and receivedAt may be in the past.
    source: `https://api.wynncraft.com/${string}`

    The route used to request the data for this object

    This is the value used to identify cache entries. API results with the same source can use the cache.
    timestamp: number

    The unix timestamp indicating when the data of this request was created

    You can use this timestamp to determine how old a piece of data is.
    totalLevel: PlayerLevelsData

    The total levels of the player

    uuid: string

    The UUID of the player

    wars: number

    The total amount of wars the player has participated in

    world: null | string

    The current world of the player; null if offline

    Generated using TypeDoc