twitcheasy-twitch-bottwitch-authtwitch-auth-tmitwitch-chat-clienttwitch-eventsubtwitch-pubsub-clienttwitch-webhooks
Welcome

BadgesApi

The API methods that deal with badges.

Overview

Can be accessed using client.badges on an ApiClient instance.

Example

const api = new ApiClient(new StaticAuthProvider(clientId, accessToken));
const cheermotes = await api.badges.getGlobalBadges();

Methods

getChannelBadges(channel, includeGlobal, language)

async

Retrieves all applicable chat badges for a given channel.

Parameter Type Required Default Description
channel UserIdResolvable none

The channel to retrieve the chat badges for.

includeGlobal boolean true

Whether to include global badges in the result list.

language string none

The language of the retrieved badge descriptions.

Return type: ChatBadgeList

getGlobalBadges(language)

async

Retrieves all globally applicable chat badges.

Parameter Type Required Default Description
language string none

The language of the retrieved badge descriptions.

Return type: ChatBadgeList