Skip to main content

guildIconUrl

@discordeno/botDocs


Documentation / @discordeno/bot / guildIconUrl

Function: guildIconUrl()

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

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: undefined | BigString

The hash identifying the event cover image.

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 if no banner has been set.

Defined in

packages/utils/dist/types/images.d.ts:58