Skip to main content

roleIconUrl

Documentation


Documentation / @discordeno/utils / roleIconUrl

Function: roleIconUrl()

roleIconUrl(roleId, iconHash, options?): undefined | string

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

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

Parameters

roleId

BigString

The ID of the role to get the icon of

iconHash

The hash of the role icon.

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.