PartialGuild

@Serializable
data class PartialGuild(val userIsOwner: Boolean, val permissions: Permissions, val iconHash: String?, val id: String, val name: String)(source)

Constructors

Link copied to clipboard
constructor(userIsOwner: Boolean, permissions: Permissions, iconHash: String?, id: String, name: String)

Properties

Link copied to clipboard
@SerialName(value = "icon")
val iconHash: String?
Link copied to clipboard
@SerialName(value = "id")
val id: String
Link copied to clipboard
@SerialName(value = "name")
val name: String
Link copied to clipboard
@SerialName(value = "permissions")
val permissions: Permissions
Link copied to clipboard
@SerialName(value = "owner")
val userIsOwner: Boolean

Functions

Link copied to clipboard
fun PartialGuild.jpgIcon(size: Int? = null): String?

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

Link copied to clipboard
fun PartialGuild.pngIcon(size: Int? = null): String?

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

Link copied to clipboard
fun PartialGuild.webpIcon(size: Int? = null): String?

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