mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +01:00
Rename createdAt -> creationDate (#628)
* Rename createdAt -> creationDate Also make it return a Date like it says, and small cleanup * Build docs
This commit is contained in:
committed by
GitHub
parent
6bfad00229
commit
7fea0a3937
@@ -54,12 +54,12 @@ class User {
|
||||
}
|
||||
|
||||
/**
|
||||
* The unix timestamp the user was created
|
||||
* The time the user was created
|
||||
* @readonly
|
||||
* @type {Date}
|
||||
*/
|
||||
get createdAt() {
|
||||
return new Date((+this.id / 4194304) + 1420070400000).getTime();
|
||||
get creationDate() {
|
||||
return new Date((this.id / 4194304) + 1420070400000);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user