Skip to content

Interface: ResolvedBadge ​

A badge resolved against the channel's badge sets: the full BadgeVersion (title, description, image URLs 1x/2x/4x) plus the set it belongs to.

See ​

k.emotes.getBadges / k.emotes.getBadge

Extends ​

Properties ​

click_action ​

ts
click_action: string;

Action performed when the badge is clicked on Twitch (may be empty).

Inherited from ​

BadgeVersion.click_action


click_url ​

ts
click_url: string;

URL opened by click_action (may be empty).

Inherited from ​

BadgeVersion.click_url


description ​

ts
description: string;

Description of the badge.

Inherited from ​

BadgeVersion.description


id ​

ts
id: string;

Version identifier within its set (e.g. '1', '3012' for a tier-3 12-month sub badge).

Inherited from ​

BadgeVersion.id


image_url_1x ​

ts
image_url_1x: string;

URL of the badge image in 18×18 px.

Inherited from ​

BadgeVersion.image_url_1x


image_url_2x ​

ts
image_url_2x: string;

URL of the badge image in 36×36 px.

Inherited from ​

BadgeVersion.image_url_2x


image_url_4x ​

ts
image_url_4x: string;

URL of the badge image in 72×72 px.

Inherited from ​

BadgeVersion.image_url_4x


set_id ​

ts
set_id: string;

Badge set identifier this version belongs to (e.g. 'subscriber').


title ​

ts
title: string;

Human-readable title of the badge (e.g. '1-Month Subscriber').

Inherited from ​

BadgeVersion.title