mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
fix(GuildMember): Invalid Date
This commit is contained in:
parent
276109ed3c
commit
46b19bbbdb
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ class GuildMember extends Base {
|
|||
* @type {number}
|
||||
* @name GuildMember#joinedTimestamp
|
||||
*/
|
||||
if (data.joined_at) this.joinedTimestamp = new Date(data.joined_at).getTime();
|
||||
if (data.joined_at) this.joinedTimestamp = new Date(Number(data.joined_at)).getTime();
|
||||
|
||||
if (data.user) this.user = this.guild.client.users.add(data.user);
|
||||
if (data.roles) this.roles._patch(data.roles);
|
||||
|
|
|
|||
Loading…
Reference in a new issue