Skip to content

Commit

Permalink
Update Player.js
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamTownsley2 authored Jul 3, 2022
1 parent f9e7b37 commit baf1b0e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/structures/Player.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ class Player {
this.channel = data.channel || null;
/**
* Timestamp when player last logged in
* @type {number}
* @type {number|null}
*/
this.firstLoginTimestamp = data.firstLogin || null;
/**
* Timestamp when player last logged in as Date
* @type {Date}
* @type {Date|null}
*/
this.firstLogin = data.firstLogin ? new Date(data.firstLogin) : null;
/**
Expand All @@ -80,17 +80,17 @@ class Player {
this.lastLoginTimestamp = data.lastLogin || null;
/**
* Timestamp when player first logged in
* @type {number}
* @type {number|null}
*/
this.lastLogin = data.lastLogin ? new Date(data.lastLogin) : null;
/**
* Timestamp when player last logged out as Date
* @type {Date}
* @type {Date|null}
*/
this.lastLogoutTimestamp = data.lastLogout || null;
/**
* Timestamp when player first logged in as Date
* @type {Date}
* @type {Date|null}
*/
this.lastLogout = data.lastLogout ? new Date(data.lastLogout) : null;
/**
Expand Down

0 comments on commit baf1b0e

Please sign in to comment.