Table of Contents

Method GetAvatarUrl

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

GetAvatarUrl(ImageFormat, ushort)

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

public string GetAvatarUrl(ImageFormat fmt, ushort size = 1024)

Parameters

fmt ImageFormat

Format of the avatar to get.

size ushort

Maximum size of the avatar. Must be a power of two, minimum 16, maximum 2048.

Returns

string

URL of the user's avatar.