parseBadges
Convert a map of badges into a list of badge images
Last updated
Convert a map of badges into a list of badge images
Last updated
Parse badges and return multiple methods to manage the results.
badges
username?
string
_options?
Converts parsed badges into an array of badges info.
Converts parsed badges into a ready-to-use HTML string.
scale?
number
inlineStyles?
boolean
Returns: string
Object map of:
key
string
Badge ID
value
string
Badge version ID
Array of:
id
string
Badge ID
title
string
Title/description
slot?
number
Position badge should be rendered
replaces?
string
Suggests that badge should replace another, only used internally
color?
string
Badge background color
images
string[]
Image URLs of the badge in different scales (asc)
channelId
string | null
ID of channel badges will be fetched from
providers
List of enabled badge providers. All are active by default.
twitch
boolean
Enable Twitch badges
bttv
boolean
Enable BTTV badges
ffz
boolean
Enable FFZ badges
seventv
boolean
Enable 7TV badges
Returns: Promise<{
,
}>
Returns:
You can also add any providers you create. See guide for more information.