Skip to content

Commit

Permalink
Rename snowflake class to prevent naming conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Gawdl3y committed Jan 7, 2017
1 parent f76b471 commit e5e36d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/index.js
Expand Up @@ -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'),
Expand Down
4 changes: 2 additions & 2 deletions src/util/Snowflake.js
Expand Up @@ -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
* ```
Expand Down Expand Up @@ -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;

0 comments on commit e5e36d9

Please sign in to comment.