Skip to main content

teamIconUrl

@discordeno/bot


Documentation / @discordeno/bot / teamIconUrl

Function: teamIconUrl()

teamIconUrl(teamId, iconHash, options?): string | undefined

Defined in: packages/utils/dist/types/images.d.ts:186

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

Parameters

teamId

BigString

The ID of the team to get the icon of

iconHash

The hash of the team icon.

undefined | BigString

options?

The parameters for the building of the URL.

format

ImageFormat

size

ImageSize

Returns

string | undefined

The link to the resource or undefined.