mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
feat: api docs catchup part 1 (#3257)
* feat: add voice message support Closes #3009 * fix: pre-commit hook EACCESS npx issue * feat: add channel to interaction Closes #2979 * feat: add role flags Closes #3070 * feat: adds creator monetization, message flagged, and member timeout audit log event Closes #3075 * feat: add attachment flags Closes #3071 * feat: add avatar decorations Closes #3081 * feat: update description for guild and channel permissions Closes #3106 * feat: rename Nitro sticker packs to just sticker packs Closes #3107 * feat: add integration type to audit log entry Closes #3108 * feat: make position optional on modify guild channel position Closes #3086 * feat: add guild media channel type and associated flag Closes #3093 * feat: update remark for activities.write scope Closes #3213 * feat: add support for super reactions Closes #3113 * fix: attempt to fix benchmarks * fix: benchmark attempt #2 --------- Co-authored-by: Fleny <Fleny113@outlook.com>
This commit is contained in:
@@ -44,6 +44,12 @@ 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}/${
|
||||
typeof avatarDecoration === 'string' ? avatarDecoration : iconBigintToHash(avatarDecoration)
|
||||
}.png`
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds a URL to a user's banner stored in the Discord CDN.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user