summary refs log tree commit diff
path: root/src/util/Snowflake.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 18:01:49 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 18:01:49 +0200
commit7685e19835afdf0b403a676c16ada663ddcbc29d (patch)
treec20eba204fa1164fa9caf9c988aa41c721f57cdd /src/util/Snowflake.ts
parent:bug: fix User Model guilds (diff)
downloadserver-7685e19835afdf0b403a676c16ada663ddcbc29d.tar.xz
:art: Convert id bigint to string
Diffstat (limited to 'src/util/Snowflake.ts')
-rw-r--r--src/util/Snowflake.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/Snowflake.ts b/src/util/Snowflake.ts
index 9e94bbd9..1ccae43c 100644
--- a/src/util/Snowflake.ts
+++ b/src/util/Snowflake.ts
@@ -87,7 +87,7 @@ export class Snowflake {
 		var worker = Snowflake.workerId << 17n;
 		var process = Snowflake.processId << 12n;
 		var increment = Snowflake.INCREMENT++;
-		return time | worker | process | increment;
+		return (time | worker | process | increment).toString();
 	}
 
 	/**