From 83c49eb6ae718a4c8b968efa4aa6df6bba28a8d7 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Thu, 15 Aug 2024 16:16:24 -0600 Subject: [PATCH] precision loss :( --- src/util/misc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/misc.js b/src/util/misc.js index 3226bc4..dcd7e3f 100644 --- a/src/util/misc.js +++ b/src/util/misc.js @@ -183,7 +183,7 @@ function getDefaultAvatar(id, discriminator = null, size = 4096) { if (discriminator && Number(discriminator) > 0) { index = Number(discriminator) % 5; } else if (id != null) { - index = (Number(id) >> 22) % 6; + index = Number((BigInt(id) >> 22n) % 6n); } return CDNEndpoints.DEFAULT_AVATAR(index, size);