precision loss :(
This commit is contained in:
parent
c3f15e263a
commit
83c49eb6ae
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ function getDefaultAvatar(id, discriminator = null, size = 4096) {
|
||||||
if (discriminator && Number(discriminator) > 0) {
|
if (discriminator && Number(discriminator) > 0) {
|
||||||
index = Number(discriminator) % 5;
|
index = Number(discriminator) % 5;
|
||||||
} else if (id != null) {
|
} else if (id != null) {
|
||||||
index = (Number(id) >> 22) % 6;
|
index = Number((BigInt(id) >> 22n) % 6n);
|
||||||
}
|
}
|
||||||
|
|
||||||
return CDNEndpoints.DEFAULT_AVATAR(index, size);
|
return CDNEndpoints.DEFAULT_AVATAR(index, size);
|
||||||
|
|
Loading…
Reference in a new issue