mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
Throw an error if you try to initiate a new SnowflakeUtil class instance (#1413)
This commit is contained in:
parent
909b825c94
commit
298ee4e79f
1 changed files with 4 additions and 0 deletions
|
|
@ -8,6 +8,10 @@ let INCREMENT = 0;
|
||||||
* A container for useful snowflake-related methods
|
* A container for useful snowflake-related methods
|
||||||
*/
|
*/
|
||||||
class SnowflakeUtil {
|
class SnowflakeUtil {
|
||||||
|
constructor() {
|
||||||
|
throw new Error(`The ${this.constructor.name} class may not be instantiated.`);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A Twitter snowflake, except the epoch is 2015-01-01T00:00:00.000Z
|
* A Twitter snowflake, except the epoch is 2015-01-01T00:00:00.000Z
|
||||||
* ```
|
* ```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue