webpIcon

fun Guild.webpIcon(size: Int? = null): String?(source)

Gets the url of the guild icon in WEBP format. Null if there is no custom icon.

Return

the url of the webp formatted emoji or null if there is no icon.

Parameters

size

the size of the image. Must be a power of two or null.

Throws

when the size is not null or a power of two.


fun PartialGuild.webpIcon(size: Int? = null): String?(source)

Gets the url of the guild icon in PNG format. Null if there is no custom icon.

Return

the url of the png formatted emoji or null if there is no icon.

Parameters

size

the size of the image. Must be a power of two or null.

Throws

when the size is not null or a power of two.