summary refs log tree commit diff
path: root/api/src/util/RandomInviteID.ts
diff options
context:
space:
mode:
Diffstat (limited to 'api/src/util/RandomInviteID.ts')
-rw-r--r--api/src/util/RandomInviteID.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/util/RandomInviteID.ts b/api/src/util/RandomInviteID.ts
index d8ea8473..7ea344e0 100644
--- a/api/src/util/RandomInviteID.ts
+++ b/api/src/util/RandomInviteID.ts
@@ -24,7 +24,7 @@ export function snowflakeBasedInvite() {
 	let str = "";
 	for (let i=0; i < 10; i++) {
 		
-		str += chars.charAt(BigInt.asUintN(snowflake % base));
+		str.concat(chars.charAt(Number(snowflake % base)));
 		snowflake = snowflake / base;
 	}