mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 17:00:08 +00:00
Merge pull request #1079 from SkyBlockDev/main
fix: iconBigintToHash hashes which start with 0
This commit is contained in:
@@ -13,6 +13,6 @@ export function iconHashToBigInt(hash: string) {
|
||||
}
|
||||
|
||||
export function iconBigintToHash(icon: bigint, animated = true) {
|
||||
const hash = icon.toString(16);
|
||||
const hash = icon.toString(16).padStart(32, "0");
|
||||
return `${animated ? "a_" : ""}${hash}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user