Skip to main content

guildIconUrl

Documentation


Documentation / @discordeno/utils / guildIconUrl

Function: guildIconUrl()

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

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

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

Parameters

guildId

BigString

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

imageHash

The hash identifying the event cover 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 no banner has been set.