Table of Contents

Method GetAvatarUrl

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

GetAvatarUrl(ImageFormat, ushort)

Gets the user's avatar URL, in requested format and size.

public string GetAvatarUrl(ImageFormat imageFormat, ushort imageSize = 1024)

Parameters

imageFormat ImageFormat

The image format of the avatar to get.

imageSize ushort

The maximum size of the avatar. Must be a power of two, minimum 16, maximum 4096.

Returns

string

The URL of the user's avatar.