precision loss :(

This commit is contained in:
Cynthia Foxwell 2024-08-15 16:16:24 -06:00
parent c3f15e263a
commit 83c49eb6ae

View file

@ -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);