Skip to main content

teamIconUrl

@discordeno/utilsDocs


Documentation / @discordeno/utils / teamIconUrl

Function: teamIconUrl()

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

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

The hash of the team icon.

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.

Defined in

packages/utils/src/images.ts:377