Overview
Methods
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)
asyncRetrieves all applicable chat badges for a given channel.
Parameter | Type | Description |
---|---|---|
channel | UserIdResolvable | The channel to retrieve the chat badges for. |
includeGlobal | boolean | Whether to include global badges in the result list. |
language | string | The language of the retrieved badge descriptions. |
Return type: ChatBadgeList
getGlobalBadges(language)
asyncRetrieves all globally applicable chat badges.
Parameter | Type | Description |
---|---|---|
language | string | The language of the retrieved badge descriptions. |
Return type: ChatBadgeList