ChatBadgeVersion

@Serializable
data class ChatBadgeVersion(val id: String, val imageUrl1x: String, val imageUrl2x: String, val imageUrl4x: String, val title: String = "", val description: String = "", val clickAction: String? = null, val clickUrl: String? = null)

A single version of a ChatBadge.

Constructors

Link copied to clipboard
constructor(id: String, imageUrl1x: String, imageUrl2x: String, imageUrl4x: String, title: String = "", description: String = "", clickAction: String? = null, clickUrl: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "click_action")
val clickAction: String?

the action to take when clicking on the badge. null if no action is specified.

Link copied to clipboard
@SerialName(value = "click_url")
val clickUrl: String?

the URL to navigate to when clicking on the badge. null if no URL is specified.

Link copied to clipboard

the description of the badge.

Link copied to clipboard
val id: String

an ID that identifies this version of the badge. The ID can be any value. For example, for Bits, the ID is the Bits tier level, but for World of Warcraft, it could be Alliance or Horde.

Link copied to clipboard
@SerialName(value = "image_url_1x")
val imageUrl1x: String

a URL to the small version (18px x 18px) of the badge.

Link copied to clipboard
@SerialName(value = "image_url_2x")
val imageUrl2x: String

a URL to the medium version (36px x 36px) of the badge.

Link copied to clipboard
@SerialName(value = "image_url_4x")
val imageUrl4x: String

a URL to the large version (72px x 72px) of the badge.

Link copied to clipboard

the title of the badge.