From b30ca7ee7e8dca68e3a274d86eb4ea013bd683c3 Mon Sep 17 00:00:00 2001 From: Danial Raza Date: Sun, 22 Oct 2023 17:53:16 +0200 Subject: [PATCH] feat: update cdn routes for avatar decoration --- deno/rest/v10/mod.ts | 6 +++--- rest/v10/index.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/deno/rest/v10/mod.ts b/deno/rest/v10/mod.ts index 95f75faea..c59028d87 100644 --- a/deno/rest/v10/mod.ts +++ b/deno/rest/v10/mod.ts @@ -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; }, /** diff --git a/rest/v10/index.ts b/rest/v10/index.ts index ea3b7dd2a..98ef57d6f 100644 --- a/rest/v10/index.ts +++ b/rest/v10/index.ts @@ -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; }, /**