roleIconUrl
@discordeno/utils • Docs
Documentation / @discordeno/utils / roleIconUrl
Function: roleIconUrl()
roleIconUrl(
roleId
,iconHash
,options
?):string
|undefined
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: undefined
| BigString
The hash of the role 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
.