Skip to main content

applicationAssetUrl

@discordeno/bot


Documentation / @discordeno/bot / applicationAssetUrl

Function: applicationAssetUrl()

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

Defined in: packages/utils/dist/types/images.d.ts:151

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

The id identifying the application asset.

undefined | BigString

options?

The parameters for the building of the URL.

format

ImageFormat

size

ImageSize

Returns

string | undefined

The link to the resource or undefined.