mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +01:00
Rename snowflake class to prevent naming conflicts
This commit is contained in:
@@ -7,7 +7,7 @@ let INCREMENT = 0;
|
||||
/**
|
||||
* A container for useful snowflake-related methods
|
||||
*/
|
||||
class Snowflake {
|
||||
class SnowflakeUtil {
|
||||
/**
|
||||
* A Twitter snowflake, except the epoch is 2015-01-01T00:00:00.000Z
|
||||
* ```
|
||||
@@ -62,4 +62,4 @@ function pad(v, n, c = '0') {
|
||||
return String(v).length >= n ? String(v) : (String(c).repeat(n) + v).slice(-n);
|
||||
}
|
||||
|
||||
module.exports = Snowflake;
|
||||
module.exports = SnowflakeUtil;
|
||||
|
||||
Reference in New Issue
Block a user