Skip to main content

guildBannerUrl

@discordeno/utilsDocs


Documentation / @discordeno/utils / guildBannerUrl

Function: guildBannerUrl()

guildBannerUrl(guildId, options): string | undefined

Builds a URL to the guild banner stored in the Discord CDN.

Parameters

guildId: BigString

The ID of the guild to get the link to the banner for.

options

The parameters for the building of the URL.

options.banner?: BigString

options.format?: ImageFormat

options.size?: ImageSize

Returns

string | undefined

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

Defined in

packages/utils/src/images.ts:83