# reloadBadges

## Example

```typescript
import { reloadBadges } from "emotettv";

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

## API

* [`reloadBadges(...)`](#reloadbadges)

### reloadBadges(...)

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

Forcefully reload global and channel badges from all providers

| Param           | Type                              |
| --------------- | --------------------------------- |
| **`_options?`** | [`ParserOptions`](#parseroptions) |

**Returns:** `Promise<void>`

## Types

### ParserOptions

| Prop            | Type                      | Description                                                 |
| --------------- | ------------------------- | ----------------------------------------------------------- |
| **`channelId`** | `string \| null`          | ID of channel badges will be fetched from                   |
| **`providers`** | [`Providers`](#providers) | List of enabled badge providers. All are active by default. |

### Providers

{% hint style="info" %}
You can also add any providers you create. See [custom emotes/badges](https://emotettv.gitbook.io/emotettv/guides/custom-emotes-badges) guide for more information.
{% endhint %}

| Prop          | Type      | Description          |
| ------------- | --------- | -------------------- |
| **`twitch`**  | `boolean` | Enable Twitch badges |
| **`bttv`**    | `boolean` | Enable BTTV badges   |
| **`ffz`**     | `boolean` | Enable FFZ badges    |
| **`seventv`** | `boolean` | Enable 7TV badges    |
