applicationAssetUrl
@discordeno/utils • Docs
Documentation / @discordeno/utils / applicationAssetUrl
Function: applicationAssetUrl()
applicationAssetUrl(
applicationId
,assetId
,options
?):string
|undefined
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: undefined
| BigString
The id identifying the application asset.
• options?
The parameters for the building of the URL.
• options.format?: ImageFormat
• options.size?: ImageSize
Returns
string
| undefined
The link to the resource or undefined
.