Skip to main content

displayAvatarUrl

Documentation


Documentation / @discordeno/utils / displayAvatarUrl

Function: displayAvatarUrl()

displayAvatarUrl(userId, discriminator, avatar, options?): string

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

Builds a URL to a user's display avatar stored in the Discord CDN.

Parameters​

userId​

BigString

The ID of the user to get the avatar of.

discriminator​

string

The user's discriminator. (4-digit tag after the hashtag.)

avatar​

BigString | undefined

The user's avatar hash.

options?​

ImageOptions

The parameters for the building of the URL.

Returns​

string

The user display avatar as an URL.