Skip to main content

avatarUrl

Documentation


Documentation / @discordeno/utils / avatarUrl

Function: avatarUrl()

avatarUrl(userId, avatar, options?): string

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

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.

avatar

BigString

The user's avatar hash.

options?

ImageOptions

The parameters for the building of the URL.

Returns

string

The user avatar as a URL.