From 215f876bb2359fd9617e8c2074c0183461f447d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erkin=20Alp=20G=C3=BCney?= Date: Tue, 30 Nov 2021 21:30:01 +0300 Subject: [PATCH] Fix assignment incompatibility --- api/src/util/RandomInviteID.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/util/RandomInviteID.ts b/api/src/util/RandomInviteID.ts index 30ba3252..d8ea8473 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(snowflake % base); + str += chars.charAt(BigInt.asUintN(snowflake % base)); snowflake = snowflake / base; }