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:
Matthew Hatcher
2023-12-04 21:54:39 +00:00
committed by GitHub
co-authored by Fleny
parent c56bb063cb
commit e47242a9e0
23 changed files with 175 additions and 33 deletions
+6
View File
@@ -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.
*