📺
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
  • reloadEmotes(...)
  • Types
  • ParserOptions
  • Providers
  1. API Reference

reloadEmotes

Re-fetch all emotes of a channel

PreviousreloadBadgesNextparseBadges

Last updated 1 year ago

Example

import { reloadEmotes } from "emotettv";

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

API

reloadEmotes(...)

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

Forcefully reload global and channel emotes 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
reloadEmotes(...)
ParserOptions
Providers