roleIconUrl
Documentation / @discordeno/bot / roleIconUrl
Function: roleIconUrl()
roleIconUrl(
roleId
,iconHash
,options
?):string
|undefined
Defined in: packages/utils/dist/types/images.d.ts:198
Builds the URL to a role icon stored in the Discord CDN.
Parameters
roleId
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
size
Returns
string
| undefined
The link to the resource or undefined
.