mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 17:21:31 +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}
|
* @type {number}
|
||||||
* @name GuildMember#joinedTimestamp
|
* @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.user) this.user = this.guild.client.users.add(data.user);
|
||||||
if (data.roles) this.roles._patch(data.roles);
|
if (data.roles) this.roles._patch(data.roles);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue