Variable CDNRoutesConst

CDNRoutes: {
    achievementIcon<Format>(applicationId, achievementId, achievementIconHash, format) => `/app-assets/${string}/achievements/${string}/icons/${string}.${Format}`;
    applicationAsset<Format>(applicationId, applicationAssetId, format) => `/app-assets/${string}/${string}.${Format}`;
    applicationCover<Format>(applicationId, applicationCoverImage, format) => `/app-icons/${string}/${string}.${Format}`;
    applicationIcon<Format>(applicationId, applicationIcon, format) => `/app-icons/${string}/${string}.${Format}`;
    avatarDecoration(avatarDecorationDataAsset) => `/avatar-decoration-presets/${string}.png`;
    defaultUserAvatar<Index>(index) => `/embed/avatars/${Index}.png`;
    emoji<Format>(emojiId, format) => `/emojis/${string}.${Format}`;
    guildBanner<Format>(guildId, guildBanner, format) => `/banners/${string}/${string}.${Format}`;
    guildDiscoverySplash<Format>(guildId, guildDiscoverySplash, format) => `/discovery-splashes/${string}/${string}.${Format}`;
    guildIcon<Format>(guildId, guildIcon, format) => `/icons/${string}/${string}.${Format}`;
    guildMemberAvatar<Format>(guildId, userId, memberAvatar, format) => `/guilds/${string}/users/${string}/avatars/${string}.${Format}`;
    guildMemberBanner<Format>(guildId, userId, guildMemberBanner, format) => `/guilds/${string}/users/${string}/banners/${string}.${Format}`;
    guildScheduledEventCover<Format>(guildScheduledEventId, guildScheduledEventCoverImage, format) => `/guild-events/${string}/${string}.${Format}`;
    guildSplash<Format>(guildId, guildSplash, format) => `/splashes/${string}/${string}.${Format}`;
    roleIcon<Format>(roleId, roleIcon, format) => `/role-icons/${string}/${string}.${Format}`;
    sticker<Format>(stickerId, format) => `/stickers/${string}.${Format}`;
    stickerPackBanner<Format>(stickerPackBannerAssetId, format) => `/app-assets/710982414301790216/store/${string}.${Format}`;
    storePageAsset<Format>(applicationId, assetId, format?) => `/app-assets/${string}/store/${string}.${Format}`;
    teamIcon<Format>(teamId, teamIcon, format) => `/team-icons/${string}/${string}.${Format}`;
    userAvatar<Format>(userId, userAvatar, format) => `/avatars/${string}/${string}.${Format}`;
    userAvatarDecoration(userId, userAvatarDecoration) => `/avatar-decorations/${string}/${string}.png`;
    userBanner<Format>(userId, userBanner, format) => `/banners/${string}/${string}.${Format}`;
}

Type declaration

  • achievementIcon:function
    • Route for:

      • GET /app-assets/{application.id}/achievements/{achievement.id}/icons/{achievement.icon}.{png|jpeg|webp}

      This route supports the extensions: PNG, JPEG, WebP

      Type Parameters

      Parameters

      • applicationId: string
      • achievementId: string
      • achievementIconHash: string
      • format: Format

      Returns `/app-assets/${string}/achievements/${string}/icons/${string}.${Format}`

  • applicationAsset:function
    • Route for:

      • GET /app-assets/{application.id}/{application.asset_id}.{png|jpeg|webp}

      This route supports the extensions: PNG, JPEG, WebP

      Type Parameters

      Parameters

      • applicationId: string
      • applicationAssetId: string
      • format: Format

      Returns `/app-assets/${string}/${string}.${Format}`

  • applicationCover:function
    • Route for:

      • GET /app-icons/{application.id}/{application.cover_image}.{png|jpeg|webp}

      This route supports the extensions: PNG, JPEG, WebP

      Type Parameters

      Parameters

      • applicationId: string
      • applicationCoverImage: string
      • format: Format

      Returns `/app-icons/${string}/${string}.${Format}`

  • applicationIcon:function
    • Route for:

      • GET /app-icons/{application.id}/{application.icon}.{png|jpeg|webp}

      This route supports the extensions: PNG, JPEG, WebP

      Type Parameters

      Parameters

      • applicationId: string
      • applicationIcon: string
      • format: Format

      Returns `/app-icons/${string}/${string}.${Format}`

  • avatarDecoration:function
    • Route for:

      • GET /avatar-decoration-presets/{avatar_decoration_data_asset}.png

      This route supports the extension: PNG

      Parameters

      • avatarDecorationDataAsset: string

      Returns `/avatar-decoration-presets/${string}.png`

  • defaultUserAvatar:function
    • 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

      Type Parameters

      Parameters

      • index: Index

      Returns `/embed/avatars/${Index}.png`

  • emoji:function
    • 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 format

      This route supports the extensions: PNG, JPEG, WebP, GIF

      Type Parameters

      Parameters

      • emojiId: string
      • format: Format

      Returns `/emojis/${string}.${Format}`

  • guildBanner:function
    • 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 format

      This route supports the extensions: PNG, JPEG, WebP, GIF

      Type Parameters

      Parameters

      • guildId: string
      • guildBanner: string
      • format: Format

      Returns `/banners/${string}/${string}.${Format}`

  • guildDiscoverySplash:function
    • Route for:

      • GET /discovery-splashes/{guild.id}/{guild.discovery_splash}.{png|jpeg|webp}

      This route supports the extensions: PNG, JPEG, WebP

      Type Parameters

      Parameters

      • guildId: string
      • guildDiscoverySplash: string
      • format: Format

      Returns `/discovery-splashes/${string}/${string}.${Format}`

  • guildIcon:function
    • 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 format

      This route supports the extensions: PNG, JPEG, WebP, GIF

      Type Parameters

      Parameters

      • guildId: string
      • guildIcon: string
      • format: Format

      Returns `/icons/${string}/${string}.${Format}`

  • guildMemberAvatar:function
    • 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 format

      This route supports the extensions: PNG, JPEG, WebP, GIF

      Type Parameters

      Parameters

      • guildId: string
      • userId: string
      • memberAvatar: string
      • format: Format

      Returns `/guilds/${string}/users/${string}/avatars/${string}.${Format}`

  • guildMemberBanner:function
    • 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

      Type Parameters

      Parameters

      • guildId: string
      • userId: string
      • guildMemberBanner: string
      • format: Format

      Returns `/guilds/${string}/users/${string}/banners/${string}.${Format}`

  • guildScheduledEventCover:function
    • Route for:

      • GET /guild-events/{guild_scheduled_event.id}/{guild_scheduled_event.image}.{png|jpeg|webp}

      This route supports the extensions: PNG, JPEG, WebP

      Type Parameters

      Parameters

      • guildScheduledEventId: string
      • guildScheduledEventCoverImage: string
      • format: Format

      Returns `/guild-events/${string}/${string}.${Format}`

  • guildSplash:function
    • Route for:

      • GET /splashes/{guild.id}/{guild.splash}.{png|jpeg|webp}

      This route supports the extensions: PNG, JPEG, WebP

      Type Parameters

      Parameters

      • guildId: string
      • guildSplash: string
      • format: Format

      Returns `/splashes/${string}/${string}.${Format}`

  • roleIcon:function
    • Route for:

      • GET /role-icons/{role.id}/{role.icon}.{png|jpeg|webp}

      This route supports the extensions: PNG, JPEG, WebP

      Type Parameters

      Parameters

      • roleId: string
      • roleIcon: string
      • format: Format

      Returns `/role-icons/${string}/${string}.${Format}`

  • sticker:function
    • Route for:

      • GET /stickers/{sticker.id}.{png|json}

      This route supports the extensions: PNG, Lottie, GIF

      Type Parameters

      Parameters

      • stickerId: string
      • format: Format

      Returns `/stickers/${string}.${Format}`

  • stickerPackBanner:function
    • Route for:

      • GET /app-assets/710982414301790216/store/{sticker_pack.banner.asset_id}.{png|jpeg|webp}

      This route supports the extensions: PNG, JPEG, WebP

      Type Parameters

      Parameters

      • stickerPackBannerAssetId: string
      • format: Format

      Returns `/app-assets/710982414301790216/store/${string}.${Format}`

  • storePageAsset:function
    • Route for:

      • GET /app-assets/${application.id}/store/${asset.id}.{png|jpeg|webp}}

      This route supports the extensions: PNG, JPEG, WebP

      Type Parameters

      Parameters

      • applicationId: string
      • assetId: string
      • Optional format: Format

      Returns `/app-assets/${string}/store/${string}.${Format}`

  • teamIcon:function
    • Route for:

      • GET /team-icons/{team.id}/{team.icon}.{png|jpeg|webp}

      This route supports the extensions: PNG, JPEG, WebP

      Type Parameters

      Parameters

      • teamId: string
      • teamIcon: string
      • format: Format

      Returns `/team-icons/${string}/${string}.${Format}`

  • userAvatar:function
    • 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 format

      This route supports the extensions: PNG, JPEG, WebP, GIF

      Type Parameters

      Parameters

      • userId: string
      • userAvatar: string
      • format: Format

      Returns `/avatars/${string}/${string}.${Format}`

  • userAvatarDecoration:function
    • Route for:

      • GET /avatar-decorations/{user.id}/{user.avatar_decoration}.png

      This route supports the extension: PNG

      Parameters

      • userId: string
      • userAvatarDecoration: string

      Returns `/avatar-decorations/${string}/${string}.png`

      Deprecated

      Use avatarDecoration instead.

  • userBanner:function
    • 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 format

      This route supports the extensions: PNG, JPEG, WebP, GIF

      Type Parameters

      Parameters

      • userId: string
      • userBanner: string
      • format: Format

      Returns `/banners/${string}/${string}.${Format}`

Generated using TypeDoc