Skip to main content

defaultAvatarUrl

Documentation


Documentation / @discordeno/utils / defaultAvatarUrl

Function: defaultAvatarUrl()

defaultAvatarUrl(userId, discriminator): string

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

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

Returns

string

The user default avatar as an URL.