Skip to main content

bannerUrl

Documentation


Documentation / @discordeno/utils / bannerUrl

Function: bannerUrl()

bannerUrl(userId, options?): undefined | string

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

Builds a URL to a user's banner stored in the Discord CDN.

Parameters

userId

BigString

The ID of the user to get the banner of.

options?

The parameters for the building of the URL.

BigString

format?

ImageFormat

size?

ImageSize

Returns

undefined | string

The link to the resource or undefined if no banner has not been set.