jpgIcon

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

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

Return

the url of the jpg 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.jpgIcon(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.