Skip to content

Commit

Permalink
feat: update cdn routes for avatar decoration
Browse files Browse the repository at this point in the history
  • Loading branch information
sdanialraza committed Oct 22, 2023
1 parent 7695743 commit b30ca7e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions deno/rest/v10/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1020,12 +1020,12 @@ export const CDNRoutes = {

/**
* Route for:
* - GET `/avatar-decorations/{user.id}/{user.avatar_decoration}.png`
* - GET `/avatar-decoration-presets/{avatar_decoration_data_asset}.png`
*
* This route supports the extension: PNG
*/
userAvatarDecoration(userId: Snowflake, userAvatarDecoration: string) {
return `/avatar-decorations/${userId}/${userAvatarDecoration}.png` as const;
avatarDecoration(avatarDecorationDataAsset: string) {
return `/avatar-decoration-presets/${avatarDecorationDataAsset}.png` as const;
},

/**
Expand Down
6 changes: 3 additions & 3 deletions rest/v10/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1020,12 +1020,12 @@ export const CDNRoutes = {

/**
* Route for:
* - GET `/avatar-decorations/{user.id}/{user.avatar_decoration}.png`
* - GET `/avatar-decoration-presets/{avatar_decoration_data_asset}.png`
*
* This route supports the extension: PNG
*/
userAvatarDecoration(userId: Snowflake, userAvatarDecoration: string) {
return `/avatar-decorations/${userId}/${userAvatarDecoration}.png` as const;
avatarDecoration(avatarDecorationDataAsset: string) {
return `/avatar-decoration-presets/${avatarDecorationDataAsset}.png` as const;
},

/**
Expand Down

0 comments on commit b30ca7e

Please sign in to comment.