📺
emoteTTV
  • Introduction
  • Getting started
  • Examples
  • Source code
  • NPM package
  • Usage
    • Usage with TMI.js
    • Usage with Twurple
    • Usage with Svelte
  • Guides
    • Custom emotes/badges
    • Message sanitization
  • API Reference
    • reloadBadges
    • reloadEmotes
    • parseBadges
    • parseEmotes
Powered by GitBook
On this page
  • Example
  • API
  • reloadBadges(...)
  • Types
  • ParserOptions
  • Providers
  1. API Reference

reloadBadges

Re-fetch all badges of a channel

PreviousMessage sanitizationNextreloadEmotes

Last updated 1 year ago

Example

import { reloadBadges } from "emotettv";

await reloadBadges({ channelId: "98776633" });

API

reloadBadges(...)

reloadBadges: (_options?: Partial<ParserOptions> | null) => Promise<void>

Forcefully reload global and channel badges from all providers

Param
Type

_options?

Returns: Promise<void>

Types

ParserOptions

Prop
Type
Description

channelId

string | null

ID of channel badges will be fetched from

providers

List of enabled badge providers. All are active by default.

Providers

Prop
Type
Description

twitch

boolean

Enable Twitch badges

bttv

boolean

Enable BTTV badges

ffz

boolean

Enable FFZ badges

seventv

boolean

Enable 7TV badges

You can also add any providers you create. See guide for more information.

custom emotes/badges
reloadBadges(...)
ParserOptions
Providers