Skip to main content

avatarUrl

@discordeno/bot


Documentation / @discordeno/bot / avatarUrl

Function: avatarUrl()

avatarUrl(userId, discriminator, options?): string

Defined in: packages/utils/dist/types/images.d.ts:20

Builds a URL to a user's 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.)

options?

The parameters for the building of the URL.

avatar

undefined | BigString

format

ImageFormat

size

ImageSize

Returns

string

The link to the resource.