Skip to main content

applicationAssetUrl

Documentation


Documentation / @discordeno/utils / applicationAssetUrl

Function: applicationAssetUrl()

applicationAssetUrl(applicationId, assetId, options?): string | undefined

Defined in: packages/utils/src/images.ts:287

Builds the URL to an application asset stored in the Discord CDN.

Parameters​

applicationId​

BigString

The ID of the application to get the asset of.

assetId​

BigString | undefined

The id identifying the application asset.

options?​

ImageOptions

The parameters for the building of the URL.

Returns​

string | undefined

The link to the resource or undefined.