mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 02:23:31 +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
@@ -31,12 +31,12 @@ class Channel {
|
||||
}
|
||||
|
||||
/**
|
||||
* The unix timestamp the channel was created
|
||||
* The time the channel 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