Table of Contents

Method GetIconUrl

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

GetIconUrl(ImageFormat, ushort)

Gets guild's icon URL, in requested format and size.

public string? GetIconUrl(ImageFormat imageFormat, ushort imageSize = 1024)

Parameters

imageFormat ImageFormat

The image format of the icon to get.

imageSize ushort

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

Returns

string

The URL of the guild's icon.