From e5e36d9111d75240e8aa696bec13c9aca564a8e4 Mon Sep 17 00:00:00 2001 From: Schuyler Cebulskie Date: Sat, 7 Jan 2017 03:37:14 -0500 Subject: [PATCH] Rename snowflake class to prevent naming conflicts --- src/index.js | 1 + src/util/Snowflake.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 07cfbf39b..d6cdffc97 100644 --- a/src/index.js +++ b/src/index.js @@ -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'), diff --git a/src/util/Snowflake.js b/src/util/Snowflake.js index 8cf9b97d8..60d0926ac 100644 --- a/src/util/Snowflake.js +++ b/src/util/Snowflake.js @@ -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;