fix created timestamp precision (#1241)

* fix created timestamp precision

* perf

* Update Snowflake.js

* gawdl3y was butthurt

* Update Snowflake.js
This commit is contained in:
Gus Caplan
2017-03-09 17:31:31 -06:00
committed by Schuyler Cebulskie
parent 21babf8859
commit 2897692cf1
7 changed files with 23 additions and 9 deletions

View File

@@ -1,3 +1,5 @@
const Snowflake = require('../util/Snowflake');
/**
* Represents an OAuth2 Application
*/
@@ -100,7 +102,7 @@ class OAuth2Application {
* @readonly
*/
get createdTimestamp() {
return (this.id / 4194304) + 1420070400000;
return Snowflake.deconstruct(this.id).timestamp;
}
/**