mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
Rename snowflake class to prevent naming conflicts
This commit is contained in:
parent
f76b47184a
commit
e5e36d9111
2 changed files with 3 additions and 2 deletions
|
|
@ -10,6 +10,7 @@ module.exports = {
|
|||
escapeMarkdown: require('./util/EscapeMarkdown'),
|
||||
fetchRecommendedShards: require('./util/FetchRecommendedShards'),
|
||||
Snowflake: require('./util/Snowflake'),
|
||||
SnowflakeUtil: require('./util/Snowflake'),
|
||||
|
||||
Channel: require('./structures/Channel'),
|
||||
ClientOAuth2Application: require('./structures/ClientOAuth2Application'),
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue