export interface CDNRoutesDeclarations
external achievementIconFormat extends AchievementIconFormat
>() : `/app-assets/${string}/achievements/${string}/icons/${string}.${Format}` <
Format extends AchievementIconFormat
Route for: - GET /app-assets/{application.id}/achievements/{achievement.id}/icons/{achievement.icon}.{png|jpeg|webp}
This route supports the extensions: PNG, JPEG, WebP
external applicationAssetFormat extends ApplicationAssetFormat
>() : `/app-assets/${string}/${string}.${Format}` <
Format extends ApplicationAssetFormat
Route for: - GET /app-assets/{application.id}/{application.asset_id}.{png|jpeg|webp}
This route supports the extensions: PNG, JPEG, WebP
external applicationCoverFormat extends ApplicationCoverFormat
>() : `/app-icons/${string}/${string}.${Format}` <
Format extends ApplicationCoverFormat
Route for: - GET /app-icons/{application.id}/{application.cover_image}.{png|jpeg|webp}
This route supports the extensions: PNG, JPEG, WebP
external applicationIconFormat extends ApplicationIconFormat
>() : `/app-icons/${string}/${string}.${Format}` <
Format extends ApplicationIconFormat
Route for: - GET /app-icons/{application.id}/{application.icon}.{png|jpeg|webp}
This route supports the extensions: PNG, JPEG, WebP
external avatarDecorationavatarDecorationDataAsset: string) : `/avatar-decoration-presets/${string}.png` (
Route for: - GET /avatar-decoration-presets/{avatar_decoration_data_asset}.png
This route supports the extension: PNG
external defaultUserAvatarIndex extends DefaultUserAvatarAssets
>(index: Index) : `/embed/avatars/${Index}.png` <
Index extends DefaultUserAvatarAssets
Route for: - GET /embed/avatars/{index}.png
The value for index
parameter depends on whether the user is migrated to the new username system. For users on the new username system, index
will be (user.id >> 22) % 6
. For users on the legacy username system, index
will be user.discriminator % 5
.This route supports the extension: PNG
external emojiFormat extends EmojiFormat
>(emojiId: Snowflakeformat: Format) : `/emojis/${string}.${Format}` <
Format extends EmojiFormat
Route for: - GET /emojis/{emoji.id}.{png|jpeg|webp|gif}
As this route supports GIFs, the hash will begin with a_
if it is available in GIF formatThis route supports the extensions: PNG, JPEG, WebP, GIF
external guildBannerFormat extends GuildBannerFormat
>() : `/banners/${string}/${string}.${Format}` <
Format extends GuildBannerFormat
Route for: - GET /banners/{guild.id}/{guild.banner}.{png|jpeg|webp|gif}
As this route supports GIFs, the hash will begin with a_
if it is available in GIF formatThis route supports the extensions: PNG, JPEG, WebP, GIF
external guildDiscoverySplashFormat extends GuildDiscoverySplashFormat
>() : `/discovery-splashes/${string}/${string}.${Format}` <
Format extends GuildDiscoverySplashFormat
Route for: - GET /discovery-splashes/{guild.id}/{guild.discovery_splash}.{png|jpeg|webp}
This route supports the extensions: PNG, JPEG, WebP
external guildIconFormat extends GuildIconFormat
>() : `/icons/${string}/${string}.${Format}` <
Format extends GuildIconFormat
Route for: - 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 formatThis route supports the extensions: PNG, JPEG, WebP, GIF
external guildMemberAvatarFormat extends GuildMemberAvatarFormat
>() : `/guilds/${string}/users/${string}/avatars/${string}.${Format}` <
Format extends GuildMemberAvatarFormat
Route for: - 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 formatThis route supports the extensions: PNG, JPEG, WebP, GIF
external guildMemberBannerFormat extends GuildMemberBannerFormat
>() : `/guilds/${string}/users/${string}/banners/${string}.${Format}` <
Format extends GuildMemberBannerFormat
Route for: - GET /guilds/${guild.id}/users/${user.id}/banners/${guild_member.banner}.{png|jpeg|webp|gif}
This route supports the extensions: PNG, JPEG, WebP, GIF
external guildScheduledEventCoverFormat extends GuildScheduledEventCoverFormat
>() : `/guild-events/${string}/${string}.${Format}` <
Format extends GuildScheduledEventCoverFormat
Route for: - GET /guild-events/{guild_scheduled_event.id}/{guild_scheduled_event.image}.{png|jpeg|webp}
This route supports the extensions: PNG, JPEG, WebP
external guildSplashFormat extends GuildSplashFormat
>() : `/splashes/${string}/${string}.${Format}` <
Format extends GuildSplashFormat
Route for: - GET /splashes/{guild.id}/{guild.splash}.{png|jpeg|webp}
This route supports the extensions: PNG, JPEG, WebP
external guildTagBadgeFormat extends GuildTagBadgeFormat
>() : `/guild-tag-badges/${string}/${string}.${Format}` <
Format extends GuildTagBadgeFormat
Route for: - GET /guild-tag-badges/{guild.id}/{badge}.{png|jpeg|webp}
This route supports the extensions: PNG, JPEG, WebP
external roleIconFormat extends RoleIconFormat
>() : `/role-icons/${string}/${string}.${Format}` <
Format extends RoleIconFormat
Route for: - GET /role-icons/{role.id}/{role.icon}.{png|jpeg|webp}
This route supports the extensions: PNG, JPEG, WebP
Route for: - GET /soundboard-sounds/${sound.id}
external stickerFormat extends StickerFormat
>(stickerId: Snowflakeformat: Format) : `/stickers/${string}.${Format}` <
Format extends StickerFormat
Route for: - GET /stickers/{sticker.id}.{png|json}
This route supports the extensions: PNG, Lottie, GIF
external stickerPackBannerFormat extends StickerPackBannerFormat
>(stickerPackBannerAssetId: Snowflakeformat: Format) : `/app-assets/710982414301790216/store/${string}.${Format}` <
Format extends StickerPackBannerFormat
Route for: - GET /app-assets/710982414301790216/store/{sticker_pack.banner.asset_id}.{png|jpeg|webp}
This route supports the extensions: PNG, JPEG, WebP
external storePageAssetFormat? extends StorePageAssetFormat = ImageFormat.PNG
>() : `/app-assets/${string}/store/${string}.${Format}` <
Format? extends StorePageAssetFormat = ImageFormat.PNG
Route for: - GET /app-assets/${application.id}/store/${asset.id}.{png|jpeg|webp}}
This route supports the extensions: PNG, JPEG, WebP
external teamIconFormat extends TeamIconFormat
>() : `/team-icons/${string}/${string}.${Format}` <
Format extends TeamIconFormat
Route for: - GET /team-icons/{team.id}/{team.icon}.{png|jpeg|webp}
This route supports the extensions: PNG, JPEG, WebP
external userAvatarFormat extends UserAvatarFormat
>() : `/avatars/${string}/${string}.${Format}` <
Format extends UserAvatarFormat
Route for: - GET /avatars/{user.id}/{user.avatar}.{png|jpeg|webp|gif}
As this route supports GIFs, the hash will begin with a_
if it is available in GIF formatThis route supports the extensions: PNG, JPEG, WebP, GIF
Use avatarDecoration instead.
Route for: - GET /avatar-decorations/{user.id}/{user.avatar_decoration}.png
This route supports the extension: PNG
external userBannerFormat extends UserBannerFormat
>() : `/banners/${string}/${string}.${Format}` <
Format extends UserBannerFormat
Route for: - GET /banners/{user.id}/{user.banner}.{png|jpeg|webp|gif}
As this route supports GIFs, the hash will begin with a_
if it is available in GIF formatThis route supports the extensions: PNG, JPEG, WebP, GIF