diff --git a/deno/rest/v10/mod.ts b/deno/rest/v10/mod.ts index 702d0ee63..f7d6851ef 100644 --- a/deno/rest/v10/mod.ts +++ b/deno/rest/v10/mod.ts @@ -1015,14 +1015,14 @@ export const CDNRoutes = { /** * Route for: - * - GET `/guilds/{guild.id}/icons/{guild.id}.{png|jpeg|webp|gif}` + * - GET `/icons/{guild.id}/{guild.icon}.{png|jpeg|webp|gif}` * * As this route supports GIFs, the hash will begin with `a_` if it is available in GIF format * * This route supports the extensions: PNG, JPEG, WebP, GIF */ guildIcon(guildId: Snowflake, guildIcon: string, format: Format) { - return `icons/${guildId}/${guildIcon}.${format}` as const; + return `/icons/${guildId}/${guildIcon}.${format}` as const; }, /** @@ -1101,7 +1101,7 @@ export const CDNRoutes = { /** * Route for: - * - GET `/guilds/{guild.id}/users/{user.id}/{guild_member.avatar}.{png|jpeg|webp|gif}` + * - GET `/guilds/{guild.id}/users/{user.id}/avatars/{guild_member.avatar}.{png|jpeg|webp|gif}` * * As this route supports GIFs, the hash will begin with `a_` if it is available in GIF format * @@ -1221,7 +1221,7 @@ export const CDNRoutes = { /** * Route for: - * - GET `team-icons/{team.id}/{team.icon}.{png|jpeg|webp}` + * - GET `/team-icons/{team.id}/{team.icon}.{png|jpeg|webp}` * * This route supports the extensions: PNG, JPEG, WebP */ diff --git a/deno/rest/v9/mod.ts b/deno/rest/v9/mod.ts index cd68adc0b..00d33bbce 100644 --- a/deno/rest/v9/mod.ts +++ b/deno/rest/v9/mod.ts @@ -1024,14 +1024,14 @@ export const CDNRoutes = { /** * Route for: - * - GET `/guilds/{guild.id}/icons/{guild.id}.{png|jpeg|webp|gif}` + * - GET `/icons/{guild.id}/{guild.icon}.{png|jpeg|webp|gif}` * * As this route supports GIFs, the hash will begin with `a_` if it is available in GIF format * * This route supports the extensions: PNG, JPEG, WebP, GIF */ guildIcon(guildId: Snowflake, guildIcon: string, format: Format) { - return `icons/${guildId}/${guildIcon}.${format}` as const; + return `/icons/${guildId}/${guildIcon}.${format}` as const; }, /** @@ -1110,7 +1110,7 @@ export const CDNRoutes = { /** * Route for: - * - GET `/guilds/{guild.id}/users/{user.id}/{guild_member.avatar}.{png|jpeg|webp|gif}` + * - GET `/guilds/{guild.id}/users/{user.id}/avatars/{guild_member.avatar}.{png|jpeg|webp|gif}` * * As this route supports GIFs, the hash will begin with `a_` if it is available in GIF format * @@ -1230,7 +1230,7 @@ export const CDNRoutes = { /** * Route for: - * - GET `team-icons/{team.id}/{team.icon}.{png|jpeg|webp}` + * - GET `/team-icons/{team.id}/{team.icon}.{png|jpeg|webp}` * * This route supports the extensions: PNG, JPEG, WebP */ diff --git a/rest/v10/index.ts b/rest/v10/index.ts index 2627467fd..84791069a 100644 --- a/rest/v10/index.ts +++ b/rest/v10/index.ts @@ -1015,14 +1015,14 @@ export const CDNRoutes = { /** * Route for: - * - GET `/guilds/{guild.id}/icons/{guild.id}.{png|jpeg|webp|gif}` + * - GET `/icons/{guild.id}/{guild.icon}.{png|jpeg|webp|gif}` * * As this route supports GIFs, the hash will begin with `a_` if it is available in GIF format * * This route supports the extensions: PNG, JPEG, WebP, GIF */ guildIcon(guildId: Snowflake, guildIcon: string, format: Format) { - return `icons/${guildId}/${guildIcon}.${format}` as const; + return `/icons/${guildId}/${guildIcon}.${format}` as const; }, /** @@ -1101,7 +1101,7 @@ export const CDNRoutes = { /** * Route for: - * - GET `/guilds/{guild.id}/users/{user.id}/{guild_member.avatar}.{png|jpeg|webp|gif}` + * - GET `/guilds/{guild.id}/users/{user.id}/avatars/{guild_member.avatar}.{png|jpeg|webp|gif}` * * As this route supports GIFs, the hash will begin with `a_` if it is available in GIF format * @@ -1221,7 +1221,7 @@ export const CDNRoutes = { /** * Route for: - * - GET `team-icons/{team.id}/{team.icon}.{png|jpeg|webp}` + * - GET `/team-icons/{team.id}/{team.icon}.{png|jpeg|webp}` * * This route supports the extensions: PNG, JPEG, WebP */ diff --git a/rest/v9/index.ts b/rest/v9/index.ts index 3e8a47fe0..363aee41b 100644 --- a/rest/v9/index.ts +++ b/rest/v9/index.ts @@ -1024,14 +1024,14 @@ export const CDNRoutes = { /** * Route for: - * - GET `/guilds/{guild.id}/icons/{guild.id}.{png|jpeg|webp|gif}` + * - GET `/icons/{guild.id}/{guild.icon}.{png|jpeg|webp|gif}` * * As this route supports GIFs, the hash will begin with `a_` if it is available in GIF format * * This route supports the extensions: PNG, JPEG, WebP, GIF */ guildIcon(guildId: Snowflake, guildIcon: string, format: Format) { - return `icons/${guildId}/${guildIcon}.${format}` as const; + return `/icons/${guildId}/${guildIcon}.${format}` as const; }, /** @@ -1110,7 +1110,7 @@ export const CDNRoutes = { /** * Route for: - * - GET `/guilds/{guild.id}/users/{user.id}/{guild_member.avatar}.{png|jpeg|webp|gif}` + * - GET `/guilds/{guild.id}/users/{user.id}/avatars/{guild_member.avatar}.{png|jpeg|webp|gif}` * * As this route supports GIFs, the hash will begin with `a_` if it is available in GIF format * @@ -1230,7 +1230,7 @@ export const CDNRoutes = { /** * Route for: - * - GET `team-icons/{team.id}/{team.icon}.{png|jpeg|webp}` + * - GET `/team-icons/{team.id}/{team.icon}.{png|jpeg|webp}` * * This route supports the extensions: PNG, JPEG, WebP */