Skip to main content

guildDiscoverySplashUrl

Documentation


Documentation / @discordeno/utils / guildDiscoverySplashUrl

Function: guildDiscoverySplashUrl()

guildDiscoverySplashUrl(guildId, imageHash, options?): undefined | string

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

Builds the URL to a guild discovery splash stored in the Discord CDN.

Parameters

guildId

BigString

The ID of the guild to get the splash of.

imageHash

The hash identifying the discovery splash image.

undefined | BigString

options?

The parameters for the building of the URL.

format?

ImageFormat

size?

ImageSize

Returns

undefined | string

The link to the resource or undefined if the guild does not have a splash image set.