mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
fix(bot,types,utils)!: change avatar decoration url link (#3621)
* Change the avatarDecorationUrl link * Add User#avatarDecorationData & Member#avatarDecorationData * Fix type error * Fix format error --------- Co-authored-by: Awesome Stickz <awesome@stickz.dev>
This commit is contained in:
@@ -44,8 +44,8 @@ export function avatarUrl(
|
||||
: `https://cdn.discordapp.com/embed/avatars/${discriminator === '0' ? (BigInt(userId) >> BigInt(22)) % BigInt(6) : Number(discriminator) % 5}.png`
|
||||
}
|
||||
|
||||
export function avatarDecorationUrl(userId: BigString, avatarDecoration: BigString): string {
|
||||
return `https://cdn.discordapp.com/avatar-decorations/${userId}/${
|
||||
export function avatarDecorationUrl(avatarDecoration: BigString): string {
|
||||
return `https://cdn.discordapp.com/avatar-decoration-presets/${
|
||||
typeof avatarDecoration === 'string' ? avatarDecoration : iconBigintToHash(avatarDecoration)
|
||||
}.png`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user